[llvm] r226581 - Silencing a -Wunused-variable warning in non-asserts builds; NFC.
Aaron Ballman
aaron at aaronballman.com
Tue Jan 20 09:10:45 PST 2015
Author: aaronballman
Date: Tue Jan 20 11:10:45 2015
New Revision: 226581
URL: http://llvm.org/viewvc/llvm-project?rev=226581&view=rev
Log:
Silencing a -Wunused-variable warning in non-asserts builds; NFC.
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=226581&r1=226580&r2=226581&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp Tue Jan 20 11:10:45 2015
@@ -1729,9 +1729,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