[llvm] r226887 - MipsAsmParser.cpp: Suppress a warning introduced in r226657. [-Wunused-variable]

NAKAMURA Takumi geek4civic at gmail.com
Thu Jan 22 17:01:53 PST 2015


Author: chapuni
Date: Thu Jan 22 19:01:52 2015
New Revision: 226887

URL: http://llvm.org/viewvc/llvm-project?rev=226887&view=rev
Log:
MipsAsmParser.cpp: Suppress a warning introduced in r226657. [-Wunused-variable]

Modified:
    llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp

Modified: llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp?rev=226887&r1=226886&r2=226887&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp Thu Jan 22 19:01:52 2015
@@ -1737,9 +1737,8 @@ MipsAsmParser::expandLoadAddressSym(MCIn
 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()) {





More information about the llvm-commits mailing list