[llvm-commits] [llvm] r116685 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sun Oct 17 00:38:40 PDT 2010
Author: d0k
Date: Sun Oct 17 02:38:40 2010
New Revision: 116685
URL: http://llvm.org/viewvc/llvm-project?rev=116685&view=rev
Log:
Fix a typo and silence unused variable warnings in -Asserts build.
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=116685&r1=116684&r2=116685&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Sun Oct 17 02:38:40 2010
@@ -472,10 +472,8 @@
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) {
More information about the llvm-commits
mailing list