[AVR] Remove a variable which was unused in release mode

In release mode where assertions are not enabled, this caused an 'unused
variable' warning.

llvm-svn: 287414
This commit is contained in:
Dylan McKay 2016-11-19 01:14:44 +00:00
parent 074d46d55f
commit 19270f3438
1 changed files with 2 additions and 3 deletions

View File

@ -145,10 +145,9 @@ void AVRInstPrinter::printPCRelImm(const MCInst *MI, unsigned OpNo,
void AVRInstPrinter::printMemri(const MCInst *MI, unsigned OpNo,
raw_ostream &O) {
const MCOperand &RegOp = MI->getOperand(OpNo);
const MCOperand &OffsetOp = MI->getOperand(OpNo + 1);
assert(MI->getOperand(OpNo).isReg() && "Expected a register for the first operand");
assert(RegOp.isReg() && "Expected a register");
const MCOperand &OffsetOp = MI->getOperand(OpNo + 1);
// Print the register.
printOperand(MI, OpNo, O);