From: Chris Lattner Date: Fri, 25 Jul 2003 17:49:28 +0000 (+0000) Subject: Fix another accessibility problem illuminated by GCC 3.3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=02a31a5af68aaca1b54c7121f04cb56828ccefc2;p=oota-llvm.git Fix another accessibility problem illuminated by GCC 3.3 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7314 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/Support/DepthFirstIterator.h b/include/Support/DepthFirstIterator.h index b4a1b2969f5..2bb2e68e670 100644 --- a/include/Support/DepthFirstIterator.h +++ b/include/Support/DepthFirstIterator.h @@ -17,7 +17,6 @@ template > class df_iterator : public forward_iterator { typedef forward_iterator super; - typedef typename super::pointer pointer; typedef typename GT::NodeType NodeType; typedef typename GT::ChildIteratorType ChildItTy; @@ -51,6 +50,7 @@ private: inline df_iterator() { /* End is when stack is empty */ } public: + typedef typename super::pointer pointer; typedef df_iterator _Self; // Provide static begin and end methods as our public "constructors" diff --git a/include/llvm/ADT/DepthFirstIterator.h b/include/llvm/ADT/DepthFirstIterator.h index b4a1b2969f5..2bb2e68e670 100644 --- a/include/llvm/ADT/DepthFirstIterator.h +++ b/include/llvm/ADT/DepthFirstIterator.h @@ -17,7 +17,6 @@ template > class df_iterator : public forward_iterator { typedef forward_iterator super; - typedef typename super::pointer pointer; typedef typename GT::NodeType NodeType; typedef typename GT::ChildIteratorType ChildItTy; @@ -51,6 +50,7 @@ private: inline df_iterator() { /* End is when stack is empty */ } public: + typedef typename super::pointer pointer; typedef df_iterator _Self; // Provide static begin and end methods as our public "constructors"