[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:
parent
074d46d55f
commit
19270f3438
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue