[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Feb 24 10:48:22 PST 2005
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.193 -> 1.194
---
Log message:
Fix a bug introduced by revision 1.187 of this file.
---
Diffs of the changes: (+2 -1)
DataStructure.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.193 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.194
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.193 Tue Feb 15 12:48:48 2005
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Thu Feb 24 12:48:07 2005
@@ -1925,11 +1925,12 @@
// 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);
More information about the llvm-commits
mailing list