mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 18:24:05 +00:00
Less conservative verison of previous patch,
suggested by Duncan. llvm-svn: 51211
This commit is contained in:
parent
12b968dd1e
commit
415dc434d6
@ -73,10 +73,10 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
|
||||
for (unsigned i = 0, e = SCC.size();
|
||||
(!SCCMightUnwind || !SCCMightReturn) && i != e; ++i) {
|
||||
Function *F = SCC[i]->getFunction();
|
||||
if (F == 0 || (F->hasWeakLinkage() && !F->doesNotThrow())) {
|
||||
if (F == 0) {
|
||||
SCCMightUnwind = true;
|
||||
SCCMightReturn = true;
|
||||
} else if (F->isDeclaration()) {
|
||||
} else if (F->isDeclaration() || F->hasWeakLinkage()) {
|
||||
SCCMightUnwind |= !F->doesNotThrow();
|
||||
SCCMightReturn |= !F->doesNotReturn();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user