Implement a "union-findy" version of DS-Analysis, which eliminates the
[oota-llvm.git] / lib / Analysis / DataStructure / Local.cpp
index b54827699ed69d7972875a5cdc5728c87d101667..32d7aea42faff3b8d77af6cc65db1ff2191985a6 100644 (file)
@@ -109,8 +109,7 @@ namespace {
     /// the graph.
     ///
     DSNode *createNode(DSNode::NodeTy NodeType, const Type *Ty = 0) {
-      DSNode *N = new DSNode(NodeType, Ty);   // Create the node
-      Nodes.push_back(N);                     // Add node to nodes list
+      DSNode *N = new DSNode(NodeType, Ty, &G);   // Create the node
       if (DisableFieldSensitivity)
         N->foldNodeCompletely();
       return N;