[llvm] [RISCV] Fix Variant Kind type for isUImm5Slist (PR #132502)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 21 19:52:58 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-risc-v
Author: Sudharsan Veeravalli (svs-quic)
<details>
<summary>Changes</summary>
This was done in 42a8813 but the change was not done in #<!-- -->132184 causing build failures.
---
Full diff: https://github.com/llvm/llvm-project/pull/132502.diff
1 Files Affected:
- (modified) llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp (+1-1)
``````````diff
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 &&
``````````
</details>
https://github.com/llvm/llvm-project/pull/132502
More information about the llvm-commits
mailing list