[llvm] r219172 - ARMInstPrinter.cpp: Suppress a warning for -Asserts. [-Wunused-variable]

NAKAMURA Takumi geek4civic at gmail.com
Mon Oct 6 16:48:04 PDT 2014


Author: chapuni
Date: Mon Oct  6 18:48:04 2014
New Revision: 219172

URL: http://llvm.org/viewvc/llvm-project?rev=219172&view=rev
Log:
ARMInstPrinter.cpp: Suppress a warning for -Asserts. [-Wunused-variable]

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=219172&r1=219171&r2=219172&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp Mon Oct  6 18:48:04 2014
@@ -544,9 +544,8 @@ void ARMInstPrinter::printAddrMode3Opera
     return;
   }
 
-  const MCOperand &MO3 = MI->getOperand(Op+2);
-
-  assert(ARM_AM::getAM3IdxMode(MO3.getImm()) != ARMII::IndexModePost &&
+  assert(ARM_AM::getAM3IdxMode(MI->getOperand(Op + 2).getImm()) !=
+             ARMII::IndexModePost &&
          "unexpected idxmode");
   printAM3PreOrOffsetIndexOp(MI, Op, O, AlwaysPrintImm0);
 }





More information about the llvm-commits mailing list