aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-11 23:11:51 +0000
committerChris Lattner <sabre@nondot.org>2003-02-11 23:11:51 +0000
commit72d29a4b0018e6f50b73c6f0f2e9a0d4d6741180 (patch)
tree5f694b68254ce455c43d57d9a0ac0ff7a420acaf /lib/Analysis/DataStructure/Local.cpp
parent2cec1d386720f84a9bf034c27a17cff35ebb3e63 (diff)
Implement a "union-findy" version of DS-Analysis, which eliminates the
Referrers list on DSNodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--lib/Analysis/DataStructure/Local.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp
index b54827699e..32d7aea42f 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/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;