diff options
author | Andrew Trick <atrick@apple.com> | 2011-08-27 06:10:16 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-08-27 06:10:16 +0000 |
commit | 8592a0cda4cf4ae76c5a29230fb330d0e952bb62 (patch) | |
tree | d1d15fcb0e76e11c282404e0a2708f1052243af9 /lib/Analysis/LoopPass.cpp | |
parent | 884fb72f155b2ca0c26de7d12ec12f4778932831 (diff) |
Reverting r138695 to see if it fixes clang self host.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopPass.cpp')
-rw-r--r-- | lib/Analysis/LoopPass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 5ba1f4045d..7ba3268b9e 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -73,8 +73,8 @@ static void createDebugInfoProbe() { char LPPassManager::ID = 0; -LPPassManager::LPPassManager() - : FunctionPass(ID), PMDataManager() { +LPPassManager::LPPassManager(int Depth) + : FunctionPass(ID), PMDataManager(Depth) { skipThisLoop = false; redoThisLoop = false; LI = NULL; @@ -357,8 +357,8 @@ void LoopPass::assignPassManager(PMStack &PMS, assert (!PMS.empty() && "Unable to create Loop Pass Manager"); PMDataManager *PMD = PMS.top(); - // [1] Create new Loop Pass Manager - LPPM = new LPPassManager(); + // [1] Create new Call Graph Pass Manager + LPPM = new LPPassManager(PMD->getDepth() + 1); LPPM->populateInheritedAnalysis(PMS); // [2] Set up new manager's top level manager |