Hrm, how could this compile?
authorChris Lattner <sabre@nondot.org>
Sat, 29 Nov 2003 19:55:02 +0000 (19:55 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 29 Nov 2003 19:55:02 +0000 (19:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10263 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/Tree.h
include/llvm/ADT/Tree.h

index bc5495f25a3b25f2b1829091220e292f9b73c66a..48ecf5b06dcf1106adb7aa53912d6b7752a3a4fc 100644 (file)
@@ -36,7 +36,7 @@ public:
 
   inline Tree(const std::vector<ConcreteTreeNode*> &children,
               ConcreteTreeNode *par, const Payload &data) 
-    : Children(children), Parent(parent), Data(data) {}
+    : Children(children), Parent(par), Data(data) {}
 
   // Tree dtor - Free all children
   inline ~Tree() {
index bc5495f25a3b25f2b1829091220e292f9b73c66a..48ecf5b06dcf1106adb7aa53912d6b7752a3a4fc 100644 (file)
@@ -36,7 +36,7 @@ public:
 
   inline Tree(const std::vector<ConcreteTreeNode*> &children,
               ConcreteTreeNode *par, const Payload &data) 
-    : Children(children), Parent(parent), Data(data) {}
+    : Children(children), Parent(par), Data(data) {}
 
   // Tree dtor - Free all children
   inline ~Tree() {