[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 11 14:13:01 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.126 -> 1.127
---
Log message:
Compute node offsets correctly
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.126 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.127
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.126 Mon Nov 10 23:08:59 2003
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Tue Nov 11 14:12:32 2003
@@ -1652,13 +1652,13 @@
if (Entry.getNode()) {
// Termination of recursion!
assert(Entry.getNode() == N2 &&
- Entry.getOffset() == (NH1.getOffset()+NH2.getOffset()) &&
+ Entry.getOffset() == (NH2.getOffset()-NH1.getOffset()) &&
"Inconsistent mapping detected!");
return;
}
Entry.setNode(N2);
- Entry.setOffset(NH1.getOffset()+NH2.getOffset());
+ Entry.setOffset(NH2.getOffset()-NH1.getOffset());
// Loop over all of the fields that N1 and N2 have in common, recursively
// mapping the edges together now.
More information about the llvm-commits
mailing list