From: Hal Finkel Date: Sun, 17 Nov 2013 01:21:54 +0000 (+0000) Subject: Fix ndebug-build unused variable in loop rerolling X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b7dabccbce5fc6fcf7b36669eb04abcb001e7f9e;p=oota-llvm.git 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 --- 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); } }