1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

[mips] Fix a warning that occurs on some gcc 4.9.2's but not all of them.

llvm-svn: 276993
This commit is contained in:
Daniel Sanders 2016-07-28 15:59:06 +00:00
parent 0548b674d7
commit 8748011a34

View File

@ -3718,10 +3718,10 @@ MipsAsmParser::checkEarlyTargetMatchPredicate(MCInst &Inst,
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) {