mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-04 18:09:20 +00:00
Intrinsic functions cannot throw
llvm-svn: 11383
This commit is contained in:
parent
848bbea2c5
commit
b0fadd694d
@ -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