diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-15 02:22:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-15 02:22:50 +0000 |
commit | ad9b5f31eaa739940c9ec540cc231afb99343304 (patch) | |
tree | 062db4dd3870c34604b3f2a5aac39f9ed9d4e0a2 /lib | |
parent | f6ba6555d32d53a2822e8421250cf8f8e095c606 (diff) | |
download | external_llvm-ad9b5f31eaa739940c9ec540cc231afb99343304.zip external_llvm-ad9b5f31eaa739940c9ec540cc231afb99343304.tar.gz external_llvm-ad9b5f31eaa739940c9ec540cc231afb99343304.tar.bz2 |
Fix bug: PruneEH/2003-09-14-ExternalCall.llx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/IPO/PruneEH.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 8be8761..4008ea6 100644 --- a/lib/Transforms/IPO/PruneEH.cpp +++ b/lib/Transforms/IPO/PruneEH.cpp @@ -48,11 +48,14 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) { std::find(SCC.begin(), SCC.end(), SCC[i]) == SCC.end()) { SCCMightThrow = true; break; } else if (Function *F = SCC[i]->getFunction()) - if (!F->isExternal()) + if (F->isExternal()) { + SCCMightThrow = true; break; + } else { for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I) if (isa<UnwindInst>(I->getTerminator())) { // Uses unwind! SCCMightThrow = true; break; } + } bool MadeChange = false; |