Intrinsic functions cannot throw

llvm-svn: 11383
This commit is contained in:
Chris Lattner 2004-02-13 16:46:46 +00:00
parent 848bbea2c5
commit b0fadd694d

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