diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-13 16:46:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-13 16:46:46 +0000 |
commit | 7db49ce5b4a783059b304fa1ea436e143644bfce (patch) | |
tree | eab9c282f8aa8b1af859dacf35c87cc0b80d37d1 /llvm/lib/Transforms | |
parent | d6687b9b82e65a0c47ae536257a1b5470472cbd2 (diff) | |
download | bcm5719-llvm-7db49ce5b4a783059b304fa1ea436e143644bfce.tar.gz bcm5719-llvm-7db49ce5b4a783059b304fa1ea436e143644bfce.zip |
Intrinsic functions cannot throw
llvm-svn: 11383
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/IPO/PruneEH.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/PruneEH.cpp b/llvm/lib/Transforms/IPO/PruneEH.cpp index 7c4fc221c96..cbe41596018 100644 --- a/llvm/lib/Transforms/IPO/PruneEH.cpp +++ b/llvm/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 |