projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d5b8cc
)
Add assert.
author
Devang Patel
<dpatel@apple.com>
Fri, 2 May 2008 22:13:33 +0000
(22:13 +0000)
committer
Devang Patel
<dpatel@apple.com>
Fri, 2 May 2008 22:13:33 +0000
(22:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50596
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/CallGraphSCCPass.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/CallGraphSCCPass.cpp
b/lib/Analysis/IPA/CallGraphSCCPass.cpp
index 90e26266f8ba886bbd3b82d3da81995034c545af..99954d632d4d9beb5b086253faf1de1dd10ba549 100644
(file)
--- a/
lib/Analysis/IPA/CallGraphSCCPass.cpp
+++ b/
lib/Analysis/IPA/CallGraphSCCPass.cpp
@@
-158,6
+158,7
@@
void CallGraphSCCPass::assignPassManager(PMStack &PMS,
PMS.top()->getPassManagerType() > PMT_CallGraphPassManager)
PMS.pop();
+ assert (!PMS.empty() && "Unable to handle Call Graph Pass");
CGPassManager *CGP = dynamic_cast<CGPassManager *>(PMS.top());
// Create new Call Graph SCC Pass Manager if it does not exist.