diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-01 00:15:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-01 00:15:30 +0000 |
commit | dba61f34e8bddb8b94e65186d6998cf3c03fa8d8 (patch) | |
tree | dc35dfcb836986c758c8fca578392fb086e20e3e /lib | |
parent | 3feaf02c47f089bc2c1faba312f03360f03bb898 (diff) | |
download | external_llvm-dba61f34e8bddb8b94e65186d6998cf3c03fa8d8.zip external_llvm-dba61f34e8bddb8b94e65186d6998cf3c03fa8d8.tar.gz external_llvm-dba61f34e8bddb8b94e65186d6998cf3c03fa8d8.tar.bz2 |
Critical shadow nodes no do not know their parent explictly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/DataStructure/NodeImpl.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Analysis/DataStructure/NodeImpl.cpp b/lib/Analysis/DataStructure/NodeImpl.cpp index 24fad04..2720922 100644 --- a/lib/Analysis/DataStructure/NodeImpl.cpp +++ b/lib/Analysis/DataStructure/NodeImpl.cpp @@ -217,9 +217,8 @@ string GlobalDSNode::getCaption() const { } -ShadowDSNode::ShadowDSNode(DSNode *P, Module *M, bool C = false) - : DSNode(ShadowNode, cast<PointerType>(P->getType())->getElementType()) { - Parent = P; +ShadowDSNode::ShadowDSNode(const Type *Ty, Module *M, bool C = false) + : DSNode(ShadowNode, Ty) { Mod = M; ShadowParent = 0; CriticalNode = C; @@ -227,7 +226,6 @@ ShadowDSNode::ShadowDSNode(DSNode *P, Module *M, bool C = false) ShadowDSNode::ShadowDSNode(const Type *Ty, Module *M, ShadowDSNode *ShadParent) : DSNode(ShadowNode, Ty) { - Parent = 0; Mod = M; ShadowParent = ShadParent; CriticalNode = false; |