Silencing a -Wunused-variable warning in non-asserts builds; NFC.
[oota-llvm.git] / lib / Target / Mips / AsmParser / MipsAsmParser.cpp
index 49cd485bb05b2f2d15e6bebced9fee4877f5d170..b815c0b423a4692c5576aeb18a777b8199cb1d11 100644 (file)
@@ -1729,9 +1729,8 @@ MipsAsmParser::expandLoadAddressSym(MCInst &Inst, SMLoc IDLoc,
 bool MipsAsmParser::
 expandUncondBranchMMPseudo(MCInst &Inst, SMLoc IDLoc,
                            SmallVectorImpl<MCInst> &Instructions) {
-  const MCInstrDesc &MCID = getInstDesc(Inst.getOpcode());
-
-  assert(MCID.getNumOperands() == 1 && "unexpected number of operands");
+  assert(getInstDesc(Inst.getOpcode()).getNumOperands() == 1 &&
+         "unexpected number of operands");
 
   MCOperand Offset = Inst.getOperand(0);
   if (Offset.isExpr()) {