[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 7 19:06:01 PST 2004
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.152 -> 1.153
---
Log message:
Bugfix for ilist conversion. The ilist wants to make an 'end' node which has
G == 0
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.152 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.153
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.152 Sat Feb 7 18:53:26 2004
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Sat Feb 7 19:05:37 2004
@@ -74,7 +74,7 @@
: NumReferrers(0), Size(0), ParentGraph(G), Ty(Type::VoidTy), NodeType(0) {
// Add the type entry if it is specified...
if (T) mergeTypeInfo(T, 0);
- G->addNode(this);
+ if (G) G->addNode(this);
++NumNodeAllocated;
}
More information about the llvm-commits
mailing list