summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2016-11-02 11:32:28 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2016-11-02 11:32:28 +0000
commit75d2f1b10df5c258ff8acf04b86ddc9aa1c137d1 (patch)
tree277c4ff585c58d5a2aa0bb2ac7d3c4c907d52a0a
parentf76f6507c2359b0e2b1d6a2cc2305bf69932e4b8 (diff)
downloadbcm5719-llvm-75d2f1b10df5c258ff8acf04b86ddc9aa1c137d1.tar.gz
bcm5719-llvm-75d2f1b10df5c258ff8acf04b86ddc9aa1c137d1.zip
[SystemZ] Fix compiler warnings introduced by r285574
SystemZAsmParser::parseOperand returns a bool, not an enum. llvm-svn: 285800
-rw-r--r--llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp b/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
index 24ab3f543df..3caff535211 100644
--- a/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
+++ b/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
@@ -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);
OpenPOWER on IntegriCloud