summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/PruneEH.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-13 16:46:46 +0000
committerChris Lattner <sabre@nondot.org>2004-02-13 16:46:46 +0000
commit0db085baecad690efa1f4afca32b191ae8d12663 (patch)
treea925edc166487de1d40e6f434da3aa26c845df12 /lib/Transforms/IPO/PruneEH.cpp
parent3ff6dddc05e29f5fb14b63b1fbcf1afb585729ee (diff)
downloadllvm-0db085baecad690efa1f4afca32b191ae8d12663.tar.gz
llvm-0db085baecad690efa1f4afca32b191ae8d12663.tar.bz2
llvm-0db085baecad690efa1f4afca32b191ae8d12663.tar.xz
Intrinsic functions cannot throw
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/PruneEH.cpp')
-rw-r--r--lib/Transforms/IPO/PruneEH.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp
index 7c4fc221c9..cbe4159601 100644
--- a/lib/Transforms/IPO/PruneEH.cpp
+++ b/lib/Transforms/IPO/PruneEH.cpp
@@ -53,7 +53,7 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &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