mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[RISCV] Unbreak the build
llvm-svn: 372127
This commit is contained in:
parent
af49ceb017
commit
f584fb28a4
@ -986,11 +986,11 @@ bool RISCVAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
|
||||
static bool matchRegisterNameHelper(bool IsRV32E, Register &RegNo,
|
||||
StringRef Name) {
|
||||
RegNo = MatchRegisterName(Name);
|
||||
if (RegNo == NoRegister)
|
||||
if (RegNo == RISCV::NoRegister)
|
||||
RegNo = MatchRegisterAltName(Name);
|
||||
if (IsRV32E && RegNo >= RISCV::X16 && RegNo <= RISCV::X31)
|
||||
RegNo = NoRegister;
|
||||
return RegNo == NoRegister;
|
||||
RegNo = RISCV::NoRegister;
|
||||
return RegNo == RISCV::NoRegister;
|
||||
}
|
||||
|
||||
bool RISCVAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc,
|
||||
@ -1036,7 +1036,7 @@ OperandMatchResultTy RISCVAsmParser::parseRegister(OperandVector &Operands,
|
||||
Register RegNo;
|
||||
matchRegisterNameHelper(isRV32E(), RegNo, Name);
|
||||
|
||||
if (RegNo == NoRegister) {
|
||||
if (RegNo == RISCV::NoRegister) {
|
||||
if (HadParens)
|
||||
getLexer().UnLex(LParen);
|
||||
return MatchOperand_NoMatch;
|
||||
|
Loading…
x
Reference in New Issue
Block a user