[llvm] r219128 - ARM: silence unused variable warning
Tim Northover
tnorthover at apple.com
Mon Oct 6 10:26:36 PDT 2014
Author: tnorthover
Date: Mon Oct 6 12:26:36 2014
New Revision: 219128
URL: http://llvm.org/viewvc/llvm-project?rev=219128&view=rev
Log:
ARM: silence unused variable warning
Modified:
llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
Modified: llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp?rev=219128&r1=219127&r2=219128&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp Mon Oct 6 12:26:36 2014
@@ -545,9 +545,9 @@ void ARMInstPrinter::printAddrMode3Opera
}
const MCOperand &MO3 = MI->getOperand(Op+2);
- unsigned IdxMode = ARM_AM::getAM3IdxMode(MO3.getImm());
- assert(IdxMode != ARMII::IndexModePost && "unexpected idxmode");
+ assert(ARM_AM::getAM3IdxMode(MO3.getImm()) != ARMII::IndexModePost &&
+ "unexpected idxmode");
printAM3PreOrOffsetIndexOp(MI, Op, O, AlwaysPrintImm0);
}
More information about the llvm-commits
mailing list