]> granicus.if.org Git - llvm/commitdiff
[SystemZ] Fix compiler warnings introduced by r285574
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 2 Nov 2016 11:32:28 +0000 (11:32 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 2 Nov 2016 11:32:28 +0000 (11:32 +0000)
SystemZAsmParser::parseOperand returns a bool, not an enum.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285800 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp

index 24ab3f543df4ed526704e7ed63e81a2dd000d162..3caff5352117f508cd4b8398e75aaf20eb6ffd2a 100644 (file)
@@ -1113,14 +1113,14 @@ bool SystemZAsmParser::parseOperand(OperandVector &Operands,
   const MCExpr *Expr;
   const MCExpr *Length;
   if (parseAddress(HaveReg1, Reg1, HaveReg2, Reg2, Expr, Length))
-    return MatchOperand_ParseFail;
+    return true;
   // If the register combination is not valid for any instruction, reject it.
   // Otherwise, fall back to reporting an unrecognized instruction.
   if (HaveReg1 && Reg1.Group != RegGR && Reg1.Group != RegV
       && parseAddressRegister(Reg1))
-    return MatchOperand_ParseFail;
+    return true;
   if (HaveReg2 && parseAddressRegister(Reg2))
-    return MatchOperand_ParseFail;
+    return true;
 
   SMLoc EndLoc =
     SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1);