Skip to content

Commit 1c6422c

Browse files
[Scalar] Fix a warning
This patch fixes: llvm/lib/Transforms/Scalar/LoopInterchange.cpp:863:20: error: unused variable 'OpCode' [-Werror,-Wunused-variable]
1 parent 2b95275 commit 1c6422c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ findInnerReductionPhi(Loop *L, Value *V,
870870
for (Instruction *I : Ops) {
871871
assert(I->getOpcode() == OpCode &&
872872
"Expected the instruction to be the reduction operation");
873+
(void)OpCode;
873874

874875
// If the instruction has nuw/nsw flags, we must drop them when the
875876
// transformation is actually performed.

0 commit comments

Comments
 (0)