[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun May 23 16:17:00 PDT 2004
Changes in directory llvm/lib/Analysis/DataStructure:
Local.cpp updated: 1.102 -> 1.103
---
Log message:
Fix a really nasty bug with the -disable-ds-field-sensitivity option
---
Diffs of the changes: (+3 -0)
Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.102 llvm/lib/Analysis/DataStructure/Local.cpp:1.103
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.102 Sun Apr 4 20:28:23 2004
+++ llvm/lib/Analysis/DataStructure/Local.cpp Sun May 23 16:14:09 2004
@@ -130,6 +130,9 @@
DSNode *createNode(const Type *Ty = 0) {
DSNode *N = new DSNode(Ty, &G); // Create the node
if (DisableFieldSensitivity) {
+ // Create node handle referring to the old node so that it is
+ // immediately removed from the graph when the node handle is destroyed.
+ DSNodeHandle OldNNH = N;
N->foldNodeCompletely();
if (DSNode *FN = N->getForwardNode())
N = FN;
More information about the llvm-commits
mailing list