Fix a crash analyzing MultiSource/Benchmarks/MallocBench/gs
authorChris Lattner <sabre@nondot.org>
Tue, 12 Apr 2005 03:59:27 +0000 (03:59 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 12 Apr 2005 03:59:27 +0000 (03:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21245 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp

index cd16e993ad6a8bca2588b010d9a3f127de5e3777..c3d1705e3501459593b3bb80e8a0fc296d73ffc7 100644 (file)
@@ -119,10 +119,9 @@ DSNode::DSNode(const Type *T, DSGraph *G)
 // DSNode copy constructor... do not copy over the referrers list!
 DSNode::DSNode(const DSNode &N, DSGraph *G, bool NullLinks)
   : NumReferrers(0), Size(N.Size), ParentGraph(G),
-    Ty(N.Ty), NodeType(N.NodeType) {
+    Ty(N.Ty), Globals(N.Globals), NodeType(N.NodeType) {
   if (!NullLinks) {
     Links = N.Links;
-    Globals = N.Globals;
   } else
     Links.resize(N.Links.size()); // Create the appropriate number of null links
   G->addNode(this);