Bugfix for ilist conversion. The ilist wants to make an 'end' node which has

G == 0


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11174 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-08 01:05:37 +00:00
parent 28897e1784
commit 9857c1a6ae

View File

@ -74,7 +74,7 @@ DSNode::DSNode(const Type *T, DSGraph *G)
: 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;
}