Skip to content

Commit 06988a0

Browse files
committed
Update MCSymbol.h
1 parent dcc2b1f commit 06988a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/MC/MCSymbol.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ class MCSymbol {
341341

342342
/// Return the size of a 'common' symbol.
343343
uint64_t getCommonSize() const {
344-
assert(isCommon() && "Not a 'common' symbol!");
344+
if (!isCommon())
345+
return 0;
345346
return CommonSize;
346347
}
347348

0 commit comments

Comments
 (0)