summaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-08-27 02:11:03 +0000
committerAndrew Trick <atrick@apple.com>2011-08-27 02:11:03 +0000
commitb84619223051fd965cc64e70c8f6b70f7ae6ae85 (patch)
treefe926c6a4345b9fb8e658a468fc63dc5924ffdfe /lib/Analysis/IPA/CallGraphSCCPass.cpp
parent0005cc7a0a4834ff8915546855864eac22b5f7ea (diff)
downloadllvm-b84619223051fd965cc64e70c8f6b70f7ae6ae85.tar.gz
llvm-b84619223051fd965cc64e70c8f6b70f7ae6ae85.tar.bz2
llvm-b84619223051fd965cc64e70c8f6b70f7ae6ae85.tar.xz
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/IPA/CallGraphSCCPass.cpp')
-rw-r--r--lib/Analysis/IPA/CallGraphSCCPass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp
index b6f9f0b32d..963da75234 100644
--- a/lib/Analysis/IPA/CallGraphSCCPass.cpp
+++ b/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();