[llvm-commits] [llvm] r121206 - /llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp
Matt Beaumont-Gay
matthewbg at google.com
Tue Dec 7 15:26:21 PST 2010
Author: matthewbg
Date: Tue Dec 7 17:26:21 2010
New Revision: 121206
URL: http://llvm.org/viewvc/llvm-project?rev=121206&view=rev
Log:
Fix a warning about a variable which is only used in an assertion.
Modified:
llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp?rev=121206&r1=121205&r2=121206&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp Tue Dec 7 17:26:21 2010
@@ -667,9 +667,9 @@
SmallVectorImpl<MCFixup> &Fixups) const {
// [SP, #imm]
// {7-0} = imm8
- const MCOperand &MO = MI.getOperand(OpIdx);
const MCOperand &MO1 = MI.getOperand(OpIdx + 1);
- assert (MO.getReg() == ARM::SP && "Unexpected base register!");
+ assert (MI.getOperand(OpIdx).getReg() == ARM::SP &&
+ "Unexpected base register!");
// The immediate is already shifted for the implicit zeroes, so no change
// here.
return MO1.getImm() & 0xff;
More information about the llvm-commits
mailing list