Fixing warnings in the MSVC build. No functional changes intended.
[oota-llvm.git] / lib / Target / ARM64 / AsmParser / ARM64AsmParser.cpp
index 705d192356e029ef36991219c6a1fbf80209ef41..38a61d809d5a493e6f72fdeebd019b1cfda81d26 100644 (file)
@@ -3021,17 +3021,17 @@ bool ARM64AsmParser::tryParseVectorRegister(OperandVector &Operands) {
 
     const MCExpr *ImmVal;
     if (getParser().parseExpression(ImmVal))
-      return MatchOperand_ParseFail;
+      return false;
     const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
     if (!MCE) {
       TokError("immediate value expected for vector index");
-      return MatchOperand_ParseFail;
+      return false;
     }
 
     SMLoc E = getLoc();
     if (Parser.getTok().isNot(AsmToken::RBrac)) {
       Error(E, "']' expected");
-      return MatchOperand_ParseFail;
+      return false;
     }
 
     Parser.Lex(); // Eat right bracket token.
@@ -3401,17 +3401,17 @@ bool ARM64AsmParser::parseVectorList(OperandVector &Operands) {
 
     const MCExpr *ImmVal;
     if (getParser().parseExpression(ImmVal))
-      return MatchOperand_ParseFail;
+      return false;
     const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
     if (!MCE) {
       TokError("immediate value expected for vector index");
-      return MatchOperand_ParseFail;
+      return false;
     }
 
     SMLoc E = getLoc();
     if (Parser.getTok().isNot(AsmToken::RBrac)) {
       Error(E, "']' expected");
-      return MatchOperand_ParseFail;
+      return false;
     }
 
     Parser.Lex(); // Eat right bracket token.