From: JF Bastien Date: Wed, 23 Dec 2015 18:18:53 +0000 (+0000) Subject: Fix SCEV r256338. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d7f93b3cb5f75520f61b11e72e3d0b77eb431da3;p=oota-llvm.git Fix SCEV r256338. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256344 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 10994d9ccfd..34074efd1ce 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -9453,8 +9453,8 @@ getLoopBackedgeTakenCounts(Loop *L, VerifyMap &Map, ScalarEvolution &SE) { replaceSubString(OS.str(), "", ""); } - for (auto *L : reverse(*L)) - getLoopBackedgeTakenCounts(L, Map, SE); // recurse. + for (auto *R : reverse(*L)) + getLoopBackedgeTakenCounts(R, Map, SE); // recurse. } void ScalarEvolution::verify() const {