From 24a7c3082288755bef6a8124e384ff8b52d31e49 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 20 May 2010 16:41:11 +0000 Subject: [PATCH] Rename a variable to avoid shadowing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104234 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopStrengthReduce.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index f648560e487..15751aaa714 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -2870,8 +2870,9 @@ void LSRInstance::NarrowSearchSpaceUsingHeuristics() { for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { LSRUse &LU = Uses[LUIdx]; - for (size_t i = 0, e = LU.Formulae.size(); i != e; ++i) { - Formula &F = LU.Formulae[i]; + for (size_t FIdx = 0, NumForms = LU.Formulae.size(); + FIdx != NumForms; ++FIdx) { + Formula &F = LU.Formulae[FIdx]; if (F.AM.BaseOffs != 0 && F.AM.Scale == 0) { if (LSRUse *LUThatHas = FindUseWithSimilarFormula(F, LU)) { if (reconcileNewOffset(*LUThatHas, F.AM.BaseOffs,