[llvm] r285800 - [SystemZ] Fix compiler warnings introduced by r285574

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 04:32:29 PDT 2016


Author: uweigand
Date: Wed Nov  2 06:32:28 2016
New Revision: 285800

URL: http://llvm.org/viewvc/llvm-project?rev=285800&view=rev
Log:
[SystemZ] Fix compiler warnings introduced by r285574

SystemZAsmParser::parseOperand returns a bool, not an enum.


Modified:
    llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp

Modified: llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp?rev=285800&r1=285799&r2=285800&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp Wed Nov  2 06:32:28 2016
@@ -1113,14 +1113,14 @@ bool SystemZAsmParser::parseOperand(Oper
   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);




More information about the llvm-commits mailing list