From ab8cacee2df7cdb5da39a93e3d9aad330cb988a9 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 2 May 2008 22:13:33 +0000 Subject: [PATCH] Add assert. llvm-svn: 50596 --- llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp index 90e26266f8ba..99954d632d4d 100644 --- a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/llvm/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(PMS.top()); // Create new Call Graph SCC Pass Manager if it does not exist.