[llvm-commits] [llvm] r50596 - /llvm/trunk/lib/Analysis/IPA/CallGraphSCCPass.cpp
Devang Patel
dpatel at apple.com
Fri May 2 15:13:33 PDT 2008
Author: dpatel
Date: Fri May 2 17:13:33 2008
New Revision: 50596
URL: http://llvm.org/viewvc/llvm-project?rev=50596&view=rev
Log:
Add assert.
Modified:
llvm/trunk/lib/Analysis/IPA/CallGraphSCCPass.cpp
Modified: llvm/trunk/lib/Analysis/IPA/CallGraphSCCPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IPA/CallGraphSCCPass.cpp?rev=50596&r1=50595&r2=50596&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IPA/CallGraphSCCPass.cpp (original)
+++ llvm/trunk/lib/Analysis/IPA/CallGraphSCCPass.cpp Fri May 2 17:13:33 2008
@@ -158,6 +158,7 @@
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.
More information about the llvm-commits
mailing list