[llvm-commits] [llvm] r128244 - /llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Matt Beaumont-Gay
matthewbg at google.com
Thu Mar 24 15:05:48 PDT 2011
Author: matthewbg
Date: Thu Mar 24 17:05:48 2011
New Revision: 128244
URL: http://llvm.org/viewvc/llvm-project?rev=128244&view=rev
Log:
Suppress an unused variable warning in -asserts builds
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=128244&r1=128243&r2=128244&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Thu Mar 24 17:05:48 2011
@@ -460,6 +460,7 @@
Inst.addOperand(MCOperand::CreateReg(getMemBaseRegNum()));
const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getMemOffset());
+ (void)CE;
assert((CE || CE->getValue() == 0) &&
"No offset operand support in mode 7");
}
More information about the llvm-commits
mailing list