[llvm] 8eb7501 - [RISCV] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 10 20:10:18 PST 2022
Author: Fangrui Song
Date: 2022-02-10T20:10:12-08:00
New Revision: 8eb750189c4678645e8457bcc9483ec5cd6bc249
URL: https://github.com/llvm/llvm-project/commit/8eb750189c4678645e8457bcc9483ec5cd6bc249
DIFF: https://github.com/llvm/llvm-project/commit/8eb750189c4678645e8457bcc9483ec5cd6bc249.diff
LOG: [RISCV] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
index 94956b495706d..6e7ae9e34d232 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -2248,6 +2248,7 @@ bool RISCVDAGToDAGISel::doPeepholeMaskedRVV(SDNode *N) {
RISCVII::hasDummyMaskOp(UnmaskedMCID.TSFlags) &&
!RISCVII::hasVecPolicyOp(UnmaskedMCID.TSFlags) &&
"Unexpected pseudo to transform to");
+ (void)UnmaskedMCID;
SmallVector<SDValue, 8> Ops;
// Skip the merge operand at index 0.
More information about the llvm-commits
mailing list