Silencing a -Wunused-variable warning in non-asserts builds; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 20 Jan 2015 17:10:45 +0000 (17:10 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 20 Jan 2015 17:10:45 +0000 (17:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226581 91177308-0d34-0410-b5e6-96231b3b80d8

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()) {