From 3937726a5bd9237006432ab965dbc769b309dda9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 16 Jun 2003 12:08:18 +0000 Subject: [PATCH] Nodes get forwarded when they are collapsed currently. llvm-svn: 6696 --- llvm/lib/Analysis/DataStructure/Local.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index 005580155d63..369b76d61192 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/lib/Analysis/DataStructure/Local.cpp @@ -110,8 +110,11 @@ namespace { /// DSNode *createNode(DSNode::NodeTy NodeType, const Type *Ty = 0) { DSNode *N = new DSNode(NodeType, Ty, &G); // Create the node - if (DisableFieldSensitivity) + if (DisableFieldSensitivity) { N->foldNodeCompletely(); + if (DSNode *FN = N->getForwardNode()) + N = FN; + } return N; }