[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 6e74651658
commit b23005ead4
1 changed files with 4 additions and 4 deletions

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) {