diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-24 18:48:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-24 18:48:07 +0000 |
commit | d7642c4f2d80a737062646dd9744f99e63469a63 (patch) | |
tree | b1a9cc62686348162994e9c22c26dab8002bf233 /lib/Analysis/DataStructure/DataStructure.cpp | |
parent | f20856db3508126ebe921957fef121e0c41fe74d (diff) |
Fix a bug introduced by revision 1.187 of this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 98fb07dff2..b32bd912db 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -1925,11 +1925,12 @@ void DSGraph::removeDeadNodes(unsigned Flags) { // 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). for (afc_iterator CI = afc_begin(), E = afc_end(); CI != E; ++CI) - if (AuxFCallsAlive.insert(&*CI).second && + if (!AuxFCallsAlive.count(&*CI) && (CI->isIndirectCall() || CallSiteUsesAliveArgs(*CI, Alive, Visited, Flags & DSGraph::RemoveUnreachableGlobals))) { CI->markReachableNodes(Alive); + AuxFCallsAlive.insert(&*CI); Iterate = true; } } while (Iterate); |