[llvm] r276993 - [mips] Fix a warning that occurs on some gcc 4.9.2's but not all of them.
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 08:59:06 PDT 2016
Author: dsanders
Date: Thu Jul 28 10:59:06 2016
New Revision: 276993
URL: http://llvm.org/viewvc/llvm-project?rev=276993&view=rev
Log:
[mips] Fix a warning that occurs on some gcc 4.9.2's but not all of them.
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=276993&r1=276992&r2=276993&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp Thu Jul 28 10:59:06 2016
@@ -3718,10 +3718,10 @@ MipsAsmParser::checkEarlyTargetMatchPred
return Match_Success;
case Mips::DATI:
case Mips::DAHI:
- return static_cast<MipsOperand &>(*Operands[1])
- .isValidForTie(static_cast<MipsOperand &>(*Operands[2]))
- ? Match_Success
- : Match_RequiresSameSrcAndDst;
+ if (static_cast<MipsOperand &>(*Operands[1])
+ .isValidForTie(static_cast<MipsOperand &>(*Operands[2])))
+ return Match_Success;
+ return Match_RequiresSameSrcAndDst;
}
}
unsigned MipsAsmParser::checkTargetMatchPredicate(MCInst &Inst) {
More information about the llvm-commits
mailing list