[llvm] [RISCV] Fix Variant Kind type for isUImm5Slist (PR #132502)

Sudharsan Veeravalli via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 21 19:52:26 PDT 2025


https://github.com/svs-quic created https://github.com/llvm/llvm-project/pull/132502

This was done in 42a8813 but the change was not done in #132184 causing build failures.

>From 68e0588ba8429f1653b8262b0ff7d8090a592505 Mon Sep 17 00:00:00 2001
From: Sudharsan Veeravalli <quic_svs at quicinc.com>
Date: Sat, 22 Mar 2025 08:16:40 +0530
Subject: [PATCH] [RISCV] Fix Variant Kind type for isUImm5Slist

This was done in 42a8813 but not in Xqcisync PR causing build failures.
---
 llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index 04fe46ad12836..ccaa8ac1c7dbb 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -775,7 +775,7 @@ struct RISCVOperand final : public MCParsedAsmOperand {
   bool isUImm5Slist() const {
     if (!isImm())
       return false;
-    RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_None;
+    RISCVMCExpr::Specifier VK = RISCVMCExpr::VK_None;
     int64_t Imm;
     bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
     return IsConstantImm &&



More information about the llvm-commits mailing list