Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 844eeb3

Browse files
committed
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
1 parent e6fb726 commit 844eeb3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,8 @@ void ARMInstPrinter::printAddrMode3Operand(const MCInst *MI, unsigned Op,
544544
return;
545545
}
546546

547-
const MCOperand &MO3 = MI->getOperand(Op+2);
548-
549-
assert(ARM_AM::getAM3IdxMode(MO3.getImm()) != ARMII::IndexModePost &&
547+
assert(ARM_AM::getAM3IdxMode(MI->getOperand(Op + 2).getImm()) !=
548+
ARMII::IndexModePost &&
550549
"unexpected idxmode");
551550
printAM3PreOrOffsetIndexOp(MI, Op, O, AlwaysPrintImm0);
552551
}

0 commit comments

Comments
 (0)