forked from OSchip/llvm-project
Fix a bug introduced by revision 1.187 of this file.
llvm-svn: 20308
This commit is contained in:
parent
07068a53ab
commit
d13cc49e19
llvm/lib/Analysis/DataStructure
|
@ -1925,11 +1925,12 @@ void DSGraph::removeDeadNodes(unsigned Flags) {
|
||||||
// The final unresolved call nodes must be handled specially at the end of
|
// The final unresolved call nodes must be handled specially at the end of
|
||||||
// the BU pass (i.e., in main or other roots of the call graph).
|
// the BU pass (i.e., in main or other roots of the call graph).
|
||||||
for (afc_iterator CI = afc_begin(), E = afc_end(); CI != E; ++CI)
|
for (afc_iterator CI = afc_begin(), E = afc_end(); CI != E; ++CI)
|
||||||
if (AuxFCallsAlive.insert(&*CI).second &&
|
if (!AuxFCallsAlive.count(&*CI) &&
|
||||||
(CI->isIndirectCall()
|
(CI->isIndirectCall()
|
||||||
|| CallSiteUsesAliveArgs(*CI, Alive, Visited,
|
|| CallSiteUsesAliveArgs(*CI, Alive, Visited,
|
||||||
Flags & DSGraph::RemoveUnreachableGlobals))) {
|
Flags & DSGraph::RemoveUnreachableGlobals))) {
|
||||||
CI->markReachableNodes(Alive);
|
CI->markReachableNodes(Alive);
|
||||||
|
AuxFCallsAlive.insert(&*CI);
|
||||||
Iterate = true;
|
Iterate = true;
|
||||||
}
|
}
|
||||||
} while (Iterate);
|
} while (Iterate);
|
||||||
|
|
Loading…
Reference in New Issue