diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-09-22 13:12:28 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-09-22 13:12:28 +0000 |
| commit | 23b5b171eb980eb9de93bc9398ccaecdb0b3d411 (patch) | |
| tree | a02c1f4f5d954c38d1e45c2e371ff648e2091e47 /llvm | |
| parent | 0ac2f2a0779d8b2e84d90901552c74ae182e5867 (diff) | |
| download | bcm5719-llvm-23b5b171eb980eb9de93bc9398ccaecdb0b3d411.tar.gz bcm5719-llvm-23b5b171eb980eb9de93bc9398ccaecdb0b3d411.zip | |
ARMInstPrinter.cpp: Fix a warning in -Asserts. [-Wunused-variable]
llvm-svn: 164459
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp index b55c7efde34..9e2c95ba0f4 100644 --- a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp +++ b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp @@ -362,10 +362,12 @@ void ARMInstPrinter::printAddrMode2Operand(const MCInst *MI, unsigned Op, return; } +#ifndef NDEBUG const MCOperand &MO3 = MI->getOperand(Op+2); unsigned IdxMode = ARM_AM::getAM2IdxMode(MO3.getImm()); assert(IdxMode != ARMII::IndexModePost && "Should be pre or offset index op"); +#endif printAM2PreOrOffsetIndexOp(MI, Op, O); } |

