mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
ARMInstPrinter.cpp: Fix a warning in -Asserts. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2d67eac2e6
commit
d15e2a0857
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user