summaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-11-17 01:21:54 +0000
committerHal Finkel <hfinkel@anl.gov>2013-11-17 01:21:54 +0000
commitb7dabccbce5fc6fcf7b36669eb04abcb001e7f9e (patch)
tree5115e2fc4ddf92a13bb4a9f8c3451f3a4a3d252d /lib/Transforms
parent94437c9691d538cc5d3862660c79fce2a32e2279 (diff)
downloadexternal_llvm-b7dabccbce5fc6fcf7b36669eb04abcb001e7f9e.zip
external_llvm-b7dabccbce5fc6fcf7b36669eb04abcb001e7f9e.tar.gz
external_llvm-b7dabccbce5fc6fcf7b36669eb04abcb001e7f9e.tar.bz2
Fix ndebug-build unused variable in loop rerolling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/LoopRerollPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopRerollPass.cpp b/lib/Transforms/Scalar/LoopRerollPass.cpp
index eb39cd0..335af81 100644
--- a/lib/Transforms/Scalar/LoopRerollPass.cpp
+++ b/lib/Transforms/Scalar/LoopRerollPass.cpp
@@ -276,7 +276,7 @@ protected:
int Idx = PossibleRedIdx[J1];
assert(Idx == PossibleRedIdx[J2] &&
"Recording pair from different reductions?");
- Reds.insert(PossibleRedIdx[J1]);
+ Reds.insert(Idx);
}
}