[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Mar 2 23:35:01 PST 2004


Changes in directory llvm/lib/Analysis/DataStructure:

DataStructure.cpp updated: 1.163 -> 1.164

---
Log message:

Fix a node mapping problem that was causing the pool allocator to locally allocate
nodes that were globally live, thus breaking programs.


---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.163 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.164
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.163	Fri Feb 27 14:05:15 2004
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp	Tue Mar  2 23:34:31 2004
@@ -1847,4 +1847,7 @@
   for (unsigned i = 0, e = N1->getSize(); i < e; i += DS::PointerSize)
     if (unsigned(N2Idx)+i < N2Size)
       computeNodeMapping(N1->getLink(i), N2->getLink(N2Idx+i), NodeMap);
+    else
+      computeNodeMapping(N1->getLink(i),
+                         N2->getLink(unsigned(N2Idx+i) % N2Size), NodeMap);
 }





More information about the llvm-commits mailing list