diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 39d37a6ca5456..cd52c50034c2d 100644 --- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -7345,7 +7345,7 @@ ParseStatus MipsAsmParser::matchAnyRegisterNameWithoutDollar( Index = matchCheriRegisterName(Identifier, Operands); if (Index != -1) { if (Index == -2) - return MatchOperand_ParseFail; + return ParseStatus::Failure; Operands.push_back(MipsOperand::CreateCheriReg( Index, Identifier, getContext().getRegisterInfo(), S, getLexer().getLoc(), *this)); return ParseStatus::Success; diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp index 72f963c10b3c8..dd62a976d16ba 100644 --- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp +++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp @@ -2258,7 +2258,7 @@ ParseStatus RISCVAsmParser::parseSpecialCapRegister(OperandVector &Operands) { switch (getLexer().getKind()) { default: - return MatchOperand_NoMatch; + return ParseStatus::NoMatch; case AsmToken::LParen: case AsmToken::Minus: case AsmToken::Plus: