aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-06-21 22:29:02 +0000
committerDevang Patel <dpatel@apple.com>2007-06-21 22:29:02 +0000
commit25e681ac221e83a7ebead99b4d3d88f1b3ab49bd (patch)
treef365df5365788ab268bf4a5fd9ebf0b8a3790575 /lib/Analysis/IPA/CallGraphSCCPass.cpp
parentd3fb6714802d8e44b34980af8772cc3ed398e71a (diff)
CallGraphSCCPass manager may require other passes.
Use schedulePass() to accomodate these requirement instead of directly assigning a manager to new CallGraph PassManager. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/CallGraphSCCPass.cpp')
-rw-r--r--lib/Analysis/IPA/CallGraphSCCPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp
index f05c8b86f8..a7e9dd00e5 100644
--- a/lib/Analysis/IPA/CallGraphSCCPass.cpp
+++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp
@@ -178,7 +178,7 @@ void CallGraphSCCPass::assignPassManager(PMStack &PMS,
// [3] Assign manager to manage this new manager. This may create
// and push new managers into PMS
Pass *P = dynamic_cast<Pass *>(CGP);
- P->assignPassManager(PMS);
+ TPM->schedulePass(P);
// [4] Push new manager into PMS
PMS.push(CGP);