From b7dabccbce5fc6fcf7b36669eb04abcb001e7f9e Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Sun, 17 Nov 2013 01:21:54 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/LoopRerollPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/LoopRerollPass.cpp b/lib/Transforms/Scalar/LoopRerollPass.cpp index eb39cd09715..335af81b957 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); } } -- 2.34.1