Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 428d601

Browse files
committed
Add parens to appease GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206678 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 2033057 commit 428d601

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/MC/ELFObjectWriter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,10 @@ static const MCSymbol *getBaseSymbol(const MCAsmLayout &Layout,
616616
void ELFObjectWriter::WriteSymbol(SymbolTableWriter &Writer, ELFSymbolData &MSD,
617617
const MCAsmLayout &Layout) {
618618
MCSymbolData &OrigData = *MSD.SymbolData;
619-
assert(!OrigData.getFragment() ||
620-
(&OrigData.getFragment()->getParent()->getSection() ==
621-
&OrigData.getSymbol().getSection()) &&
622-
"The symbol's section doesn't match the fragment's symbol");
619+
assert((!OrigData.getFragment() ||
620+
(&OrigData.getFragment()->getParent()->getSection() ==
621+
&OrigData.getSymbol().getSection())) &&
622+
"The symbol's section doesn't match the fragment's symbol");
623623
const MCSymbol *Base = getBaseSymbol(Layout, OrigData.getSymbol());
624624

625625
// This has to be in sync with when computeSymbolTable uses SHN_ABS or

0 commit comments

Comments
 (0)