From 798236580236628d3e1b55954e10d03d770183b1 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 20 Jan 2015 17:10:45 +0000 Subject: [PATCH] Silencing a -Wunused-variable warning in non-asserts builds; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226581 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 49cd485bb05..b815c0b423a 100644 --- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -1729,9 +1729,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