[mips] Fix a warning that occurs on some gcc 4.9.2's but not all of them.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 28 Jul 2016 15:59:06 +0000 (15:59 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 28 Jul 2016 15:59:06 +0000 (15:59 +0000)
llvm-svn: 276993

llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp

index dad1991..0291ef9 100644 (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) {