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 | b0cd1e65deaa61c57b1d45602900a33115461afc (patch) | |
tree | 4beabd3e9f3d8bd85206012c99a8bf222ffceb47 /llvm/lib/Analysis/IPA | |
parent | d3d25d910995c7a47a569881cbf03bb4d54f8ec4 (diff) | |
download | bcm5719-llvm-b0cd1e65deaa61c57b1d45602900a33115461afc.tar.gz bcm5719-llvm-b0cd1e65deaa61c57b1d45602900a33115461afc.zip |
Fix PassManager stack depths.
Patch by Xiaoyi Guo!
llvm-svn: 138695
Diffstat (limited to 'llvm/lib/Analysis/IPA')
-rw-r--r-- | llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp index b6f9f0b32d8..963da752343 100644 --- a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -44,8 +44,8 @@ namespace { class CGPassManager : public ModulePass, public PMDataManager { public: static char ID; - explicit CGPassManager(int Depth) - : ModulePass(ID), PMDataManager(Depth) { } + explicit CGPassManager() + : ModulePass(ID), PMDataManager() { } /// run - Execute all of the passes scheduled for execution. Keep track of /// whether any of the passes modifies the module, and if so, return true. @@ -543,7 +543,7 @@ void CallGraphSCCPass::assignPassManager(PMStack &PMS, PMDataManager *PMD = PMS.top(); // [1] Create new Call Graph Pass Manager - CGP = new CGPassManager(PMD->getDepth() + 1); + CGP = new CGPassManager(); // [2] Set up new manager's top level manager PMTopLevelManager *TPM = PMD->getTopLevelManager(); |