diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-17 07:38:40 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-17 07:38:40 +0000 |
commit | 24f1206c7de0f21d309d27737071ad742d5ddf27 (patch) | |
tree | 2fbdc97878266bd692403e000ebae89e718ed8be /lib | |
parent | ec8bf972f5a270c80c7dca05151c9063be646e2b (diff) | |
download | external_llvm-24f1206c7de0f21d309d27737071ad742d5ddf27.zip external_llvm-24f1206c7de0f21d309d27737071ad742d5ddf27.tar.gz external_llvm-24f1206c7de0f21d309d27737071ad742d5ddf27.tar.bz2 |
Fix a typo and silence unused variable warnings in -Asserts build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/ELFObjectWriter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 5a4f89d..17c46f4 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -472,10 +472,8 @@ void ELFObjectWriterImpl::WriteSymbol(MCDataFragment *F, ELFSymbolData &MSD, const MCBinaryExpr *BE = static_cast<const MCBinaryExpr *>(ESize); if (BE->EvaluateAsRelocatable(Res, &Layout)) { - const llvm::MCSymbolRefExpr *A = Res.getSymA(); - const llvm::MCSymbolRefExpr *B = Res.getSymA(); - assert(!A || !A->getSymbol().isDefined()); - assert(!B || !B->getSymbol().isDefined()); + assert(!Res.getSymA() || !Res.getSymA()->getSymbol().isDefined()); + assert(!Res.getSymB() || !Res.getSymB()->getSymbol().isDefined()); Size = Res.getConstant(); } } else if (ESize->getKind() == MCExpr::Constant) { |