From d7f93b3cb5f75520f61b11e72e3d0b77eb431da3 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Wed, 23 Dec 2015 18:18:53 +0000 Subject: [PATCH] Fix SCEV r256338. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256344 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/ScalarEvolution.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.34.1