diff options
author | Andrew Trick <atrick@apple.com> | 2011-08-27 02:11:03 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-08-27 02:11:03 +0000 |
commit | b84619223051fd965cc64e70c8f6b70f7ae6ae85 (patch) | |
tree | fe926c6a4345b9fb8e658a468fc63dc5924ffdfe /lib/Analysis/LoopPass.cpp | |
parent | 0005cc7a0a4834ff8915546855864eac22b5f7ea (diff) |
Fix PassManager stack depths.
Patch by Xiaoyi Guo!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138695 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 7ba3268b9e..5ba1f4045d 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -73,8 +73,8 @@ static void createDebugInfoProbe() { char LPPassManager::ID = 0; -LPPassManager::LPPassManager(int Depth) - : FunctionPass(ID), PMDataManager(Depth) { +LPPassManager::LPPassManager() + : FunctionPass(ID), PMDataManager() { 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 Call Graph Pass Manager - LPPM = new LPPassManager(PMD->getDepth() + 1); + // [1] Create new Loop Pass Manager + LPPM = new LPPassManager(); LPPM->populateInheritedAnalysis(PMS); // [2] Set up new manager's top level manager |