summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/AsmParser
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2016-07-28 15:59:06 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2016-07-28 15:59:06 +0000
commitb23005ead4b117b32ad4f57fef8d9894dd755656 (patch)
treee363945d4792979d3d7d277fbc9e0eed19a0cdfd /llvm/lib/Target/Mips/AsmParser
parent6e74651658d4e1eb59277812a3ee369ad8a79f4b (diff)
downloadbcm5719-llvm-b23005ead4b117b32ad4f57fef8d9894dd755656.tar.gz
bcm5719-llvm-b23005ead4b117b32ad4f57fef8d9894dd755656.zip
[mips] Fix a warning that occurs on some gcc 4.9.2's but not all of them.
llvm-svn: 276993
Diffstat (limited to 'llvm/lib/Target/Mips/AsmParser')
-rw-r--r--llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index dad199154e1..0291ef929e2 100644
--- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -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) {
OpenPOWER on IntegriCloud