[llvm] 274db64 - [RISCV] Replace a hardcoded 16 with RISCVZC::INVALID_RLIST. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 21:51:02 PDT 2024
Author: Craig Topper
Date: 2024-03-13T21:47:25-07:00
New Revision: 274db64558e6c2dd8a35e912301f628fcb7ceed6
URL: https://github.com/llvm/llvm-project/commit/274db64558e6c2dd8a35e912301f628fcb7ceed6
DIFF: https://github.com/llvm/llvm-project/commit/274db64558e6c2dd8a35e912301f628fcb7ceed6.diff
LOG: [RISCV] Replace a hardcoded 16 with RISCVZC::INVALID_RLIST. NFC
Added:
Modified:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index a78e89d9eb7a88..1779959324da2a 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -2576,7 +2576,7 @@ ParseStatus RISCVAsmParser::parseReglist(OperandVector &Operands) {
RegEnd = RegStart;
auto Encode = RISCVZC::encodeRlist(RegEnd, IsEABI);
- if (Encode == 16)
+ if (Encode == RISCVZC::INVALID_RLIST)
return Error(S, "invalid register list");
Operands.push_back(RISCVOperand::createRlist(Encode, S));
More information about the llvm-commits
mailing list