mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
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:
parent
3ff6dddc05
commit
0db085baec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user