Fix -Wunused-variable in non-Asserts build

llvm-svn: 270118
This commit is contained in:
David Blaikie 2016-05-19 20:44:22 +00:00
parent f590c971c7
commit bc744272f8
1 changed files with 1 additions and 2 deletions

View File

@ -202,10 +202,9 @@ void HexagonInstPrinter::printPredicateOperand(MCInst const *MI, unsigned OpNo,
void HexagonInstPrinter::printSymbol(MCInst const *MI, unsigned OpNo,
raw_ostream &O, bool hi) const {
MCOperand const &MO = MI->getOperand(OpNo);
assert(MI->getOperand(OpNo).isImm() && "Unknown symbol operand");
O << '#' << (hi ? "HI" : "LO") << '(';
assert(MO.isImm() && "Unknown symbol operand");
O << '#';
printOperand(MI, OpNo, O);
O << ')';