summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-10-06 23:48:04 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-10-06 23:48:04 +0000
commitc62436c60a332cd213d87e2fce52a8589856512d (patch)
tree249d0a7c9b70346cef471383753aab8be7ba8f19 /llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
parent3848e903e4379857a2207f0bea46586c52e3128d (diff)
downloadbcm5719-llvm-c62436c60a332cd213d87e2fce52a8589856512d.tar.gz
bcm5719-llvm-c62436c60a332cd213d87e2fce52a8589856512d.zip
ARMInstPrinter.cpp: Suppress a warning for -Asserts. [-Wunused-variable]
llvm-svn: 219172
Diffstat (limited to 'llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
index 730cdb71c73..0570084deb6 100644
--- a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
+++ b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
@@ -544,9 +544,8 @@ void ARMInstPrinter::printAddrMode3Operand(const MCInst *MI, unsigned Op,
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);
}
OpenPOWER on IntegriCloud