Critical shadow nodes no do not know their parent explictly.
authorChris Lattner <sabre@nondot.org>
Mon, 1 Apr 2002 00:15:30 +0000 (00:15 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Apr 2002 00:15:30 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2084 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/NodeImpl.cpp

index 24fad04a4f97d04400e73f9fe484b21ee2973337..27209224b4df9ac10c990e1de6c7eb4fd808a2fc 100644 (file)
@@ -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;