[llvm] 1c6422c - [Scalar] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 08:00:53 PDT 2025
Author: Kazu Hirata
Date: 2025-07-15T08:00:46-07:00
New Revision: 1c6422c4bdd39b91fee90ce3adeb8404ee92c341
URL: https://github.com/llvm/llvm-project/commit/1c6422c4bdd39b91fee90ce3adeb8404ee92c341
DIFF: https://github.com/llvm/llvm-project/commit/1c6422c4bdd39b91fee90ce3adeb8404ee92c341.diff
LOG: [Scalar] Fix a warning
This patch fixes:
llvm/lib/Transforms/Scalar/LoopInterchange.cpp:863:20: error: unused
variable 'OpCode' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopInterchange.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
index 09ebd2c913c0e..a0f9f3c4a35a5 100644
--- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
@@ -870,6 +870,7 @@ findInnerReductionPhi(Loop *L, Value *V,
for (Instruction *I : Ops) {
assert(I->getOpcode() == OpCode &&
"Expected the instruction to be the reduction operation");
+ (void)OpCode;
// If the instruction has nuw/nsw flags, we must drop them when the
// transformation is actually performed.
More information about the llvm-commits
mailing list