Skip to content

Commit aa5f9b7

Browse files
committed
Migrate to to ParseStatus per upstream deprecation.
1 parent 07e8964 commit aa5f9b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7345,7 +7345,7 @@ ParseStatus MipsAsmParser::matchAnyRegisterNameWithoutDollar(
73457345
Index = matchCheriRegisterName(Identifier, Operands);
73467346
if (Index != -1) {
73477347
if (Index == -2)
7348-
return MatchOperand_ParseFail;
7348+
return ParseStatus::Failure;
73497349
Operands.push_back(MipsOperand::CreateCheriReg(
73507350
Index, Identifier, getContext().getRegisterInfo(), S, getLexer().getLoc(), *this));
73517351
return ParseStatus::Success;

llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,7 @@ ParseStatus RISCVAsmParser::parseSpecialCapRegister(OperandVector &Operands) {
22582258

22592259
switch (getLexer().getKind()) {
22602260
default:
2261-
return MatchOperand_NoMatch;
2261+
return ParseStatus::NoMatch;
22622262
case AsmToken::LParen:
22632263
case AsmToken::Minus:
22642264
case AsmToken::Plus:

0 commit comments

Comments
 (0)