Skip to content

Commit 274db64

Browse files
committed
[RISCV] Replace a hardcoded 16 with RISCVZC::INVALID_RLIST. NFC
1 parent 84420a2 commit 274db64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2576,7 +2576,7 @@ ParseStatus RISCVAsmParser::parseReglist(OperandVector &Operands) {
25762576
RegEnd = RegStart;
25772577

25782578
auto Encode = RISCVZC::encodeRlist(RegEnd, IsEABI);
2579-
if (Encode == 16)
2579+
if (Encode == RISCVZC::INVALID_RLIST)
25802580
return Error(S, "invalid register list");
25812581
Operands.push_back(RISCVOperand::createRlist(Encode, S));
25822582

0 commit comments

Comments
 (0)