[llvm] r372127 - [RISCV] Unbreak the build
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 07:27:31 PDT 2019
Author: d0k
Date: Tue Sep 17 07:27:31 2019
New Revision: 372127
URL: http://llvm.org/viewvc/llvm-project?rev=372127&view=rev
Log:
[RISCV] Unbreak the build
Modified:
llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
Modified: llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp?rev=372127&r1=372126&r2=372127&view=diff
==============================================================================
--- llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp Tue Sep 17 07:27:31 2019
@@ -986,11 +986,11 @@ bool RISCVAsmParser::MatchAndEmitInstruc
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::par
Register RegNo;
matchRegisterNameHelper(isRV32E(), RegNo, Name);
- if (RegNo == NoRegister) {
+ if (RegNo == RISCV::NoRegister) {
if (HadParens)
getLexer().UnLex(LParen);
return MatchOperand_NoMatch;
More information about the llvm-commits
mailing list