Skip to content

Commit 23b5b17

Browse files
committed
ARMInstPrinter.cpp: Fix a warning in -Asserts. [-Wunused-variable]
llvm-svn: 164459
1 parent 0ac2f2a commit 23b5b17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,12 @@ void ARMInstPrinter::printAddrMode2Operand(const MCInst *MI, unsigned Op,
362362
return;
363363
}
364364

365+
#ifndef NDEBUG
365366
const MCOperand &MO3 = MI->getOperand(Op+2);
366367
unsigned IdxMode = ARM_AM::getAM2IdxMode(MO3.getImm());
367368
assert(IdxMode != ARMII::IndexModePost &&
368369
"Should be pre or offset index op");
370+
#endif
369371

370372
printAM2PreOrOffsetIndexOp(MI, Op, O);
371373
}

0 commit comments

Comments
 (0)