From 7127d7db7a5932553fce5e8c7917be1ba548ba2a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 11 Feb 2003 23:11:51 +0000 Subject: Implement a "union-findy" version of DS-Analysis, which eliminates the Referrers list on DSNodes. llvm-svn: 5536 --- llvm/lib/Analysis/DataStructure/Local.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp') diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index b54827699ed..32d7aea42fa 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/lib/Analysis/DataStructure/Local.cpp @@ -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; -- cgit v1.2.3