MipsAsmParser.cpp: Suppress a warning introduced in r226657. [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 23 Jan 2015 01:01:52 +0000 (01:01 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 23 Jan 2015 01:01:52 +0000 (01:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226887 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/AsmParser/MipsAsmParser.cpp

index 52e6a703fbce0dcd40e47c5bcc0b0a22738f1520..ade5e7b26a95f3658a8326c0c878a6ea14669f94 100644 (file)
@@ -1737,9 +1737,8 @@ MipsAsmParser::expandLoadAddressSym(MCInst &Inst, SMLoc IDLoc,
 bool MipsAsmParser::
 expandUncondBranchMMPseudo(MCInst &Inst, SMLoc IDLoc,
                            SmallVectorImpl<MCInst> &Instructions) {
 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()) {
 
   MCOperand Offset = Inst.getOperand(0);
   if (Offset.isExpr()) {