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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2014-10-06 23:48:04 +00:00
parent e6fb7265d7
commit 844eeb3741

View File

@ -544,9 +544,8 @@ void ARMInstPrinter::printAddrMode3Operand(const MCInst *MI, unsigned Op,
return; return;
} }
const MCOperand &MO3 = MI->getOperand(Op+2); assert(ARM_AM::getAM3IdxMode(MI->getOperand(Op + 2).getImm()) !=
ARMII::IndexModePost &&
assert(ARM_AM::getAM3IdxMode(MO3.getImm()) != ARMII::IndexModePost &&
"unexpected idxmode"); "unexpected idxmode");
printAM3PreOrOffsetIndexOp(MI, Op, O, AlwaysPrintImm0); printAM3PreOrOffsetIndexOp(MI, Op, O, AlwaysPrintImm0);
} }