Skip to content
Snippets Groups Projects
Commit 7db49ce5 authored by Chris Lattner's avatar Chris Lattner
Browse files

Intrinsic functions cannot throw

llvm-svn: 11383
parent d6687b9b
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) { ...@@ -53,7 +53,7 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
bool SCCMightThrow = false; bool SCCMightThrow = false;
for (unsigned i = 0, e = SCC.size(); !SCCMightThrow && i != e; ++i) for (unsigned i = 0, e = SCC.size(); !SCCMightThrow && i != e; ++i)
if (Function *F = SCC[i]->getFunction()) if (Function *F = SCC[i]->getFunction())
if (F->isExternal()) { if (F->isExternal() && !F->getIntrinsicID()) {
SCCMightThrow = true; SCCMightThrow = true;
} else { } else {
// Check to see if this function performs an unwind or calls an // Check to see if this function performs an unwind or calls an
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment