ARM: silence unused variable warning
authorTim Northover <tnorthover@apple.com>
Mon, 6 Oct 2014 17:26:36 +0000 (17:26 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 6 Oct 2014 17:26:36 +0000 (17:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219128 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp

index 87c8ef9a1465c5c24dd1966fff7f64e748d9d1d6..730cdb71c73fb3ef5e768f06ed60a136c3877a48 100644 (file)
@@ -545,9 +545,9 @@ void ARMInstPrinter::printAddrMode3Operand(const MCInst *MI, unsigned Op,
   }
 
   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);
 }