projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28897e1
)
Bugfix for ilist conversion. The ilist wants to make an 'end' node which has
author
Chris Lattner
<sabre@nondot.org>
Sun, 8 Feb 2004 01:05:37 +0000
(
01:05
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 8 Feb 2004 01:05:37 +0000
(
01:05
+0000)
G == 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11174
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/DataStructure/DataStructure.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DataStructure/DataStructure.cpp
b/lib/Analysis/DataStructure/DataStructure.cpp
index 9311b10151957c28317327bd0c5486d8a9d45a2a..57651d78e1ee5677641df083e3d2f1afad1699f7 100644
(file)
--- a/
lib/Analysis/DataStructure/DataStructure.cpp
+++ b/
lib/Analysis/DataStructure/DataStructure.cpp
@@
-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;
}