From: Chris Lattner Date: Fri, 13 Feb 2004 16:46:46 +0000 (+0000) Subject: Intrinsic functions cannot throw X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0db085baecad690efa1f4afca32b191ae8d12663;p=oota-llvm.git Intrinsic functions cannot throw git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11383 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 7c4fc221c96..cbe41596018 100644 --- a/lib/Transforms/IPO/PruneEH.cpp +++ b/lib/Transforms/IPO/PruneEH.cpp @@ -53,7 +53,7 @@ bool PruneEH::runOnSCC(const std::vector &SCC) { bool SCCMightThrow = false; for (unsigned i = 0, e = SCC.size(); !SCCMightThrow && i != e; ++i) if (Function *F = SCC[i]->getFunction()) - if (F->isExternal()) { + if (F->isExternal() && !F->getIntrinsicID()) { SCCMightThrow = true; } else { // Check to see if this function performs an unwind or calls an