From 8c07a3aba9edcdf8040ed6605a64a6b171c27d21 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 23 Jan 2015 01:01:52 +0000 Subject: [PATCH] MipsAsmParser.cpp: Suppress a warning introduced in r226657. [-Wunused-variable] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226887 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 52e6a703fbc..ade5e7b26a9 100644 --- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -1737,9 +1737,8 @@ MipsAsmParser::expandLoadAddressSym(MCInst &Inst, SMLoc IDLoc, bool MipsAsmParser:: expandUncondBranchMMPseudo(MCInst &Inst, SMLoc IDLoc, SmallVectorImpl &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()) { -- 2.34.1