Intrinsic functions cannot throw

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-13 16:46:46 +00:00
parent 3ff6dddc05
commit 0db085baec

View File

@ -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