[llvm] 4a7b53f - [RISCV] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 14:37:31 PDT 2025
Author: Kazu Hirata
Date: 2025-05-30T14:37:25-07:00
New Revision: 4a7b53f04021d957db65248deafbfd71e333bc54
URL: https://github.com/llvm/llvm-project/commit/4a7b53f04021d957db65248deafbfd71e333bc54
DIFF: https://github.com/llvm/llvm-project/commit/4a7b53f04021d957db65248deafbfd71e333bc54.diff
LOG: [RISCV] Fix a warning
This patch fixes:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp:8411:7: error: unused
variable 'ArgVT' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index b7fd0c93fa93f..5fd55227024d6 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -8411,6 +8411,7 @@ SDValue RISCVTargetLowering::lowerPARTIAL_REDUCE_MLA(SDValue Op,
MVT ArgVT = A.getSimpleValueType();
assert(ArgVT == B.getSimpleValueType() &&
ArgVT.getVectorElementType() == MVT::i8);
+ (void)ArgVT;
// The zvqdotq pseudos are defined with sources and destination both
// being i32. This cast is needed for correctness to avoid incorrect
More information about the llvm-commits
mailing list