mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
one more try at making this simpler, hopefully it won't break everything :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b3020d7a08
commit
b8bcbd61a8
@ -178,11 +178,11 @@ void CGPassManager::RefreshCallGraph(std::vector<CallGraphNode*> &CurSCC,
|
|||||||
"CallGraphSCCPass did not update the CallGraph correctly!");
|
"CallGraphSCCPass did not update the CallGraph correctly!");
|
||||||
|
|
||||||
// Just remove the edge from the set of callees.
|
// Just remove the edge from the set of callees.
|
||||||
bool wasLast = I + 1 == E;
|
|
||||||
CGN->removeCallEdge(I);
|
CGN->removeCallEdge(I);
|
||||||
if (wasLast)
|
|
||||||
// I is now a singular iterator, do not compare with E.
|
// If we removed the last edge, get out of the loop.
|
||||||
break;
|
if (CGN->empty()) break;
|
||||||
|
|
||||||
E = CGN->end();
|
E = CGN->end();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user