diff options
-rw-r--r-- | include/Support/DepthFirstIterator.h | 2 | ||||
-rw-r--r-- | include/llvm/ADT/DepthFirstIterator.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/Support/DepthFirstIterator.h b/include/Support/DepthFirstIterator.h index b4a1b2969f..2bb2e68e67 100644 --- a/include/Support/DepthFirstIterator.h +++ b/include/Support/DepthFirstIterator.h @@ -17,7 +17,6 @@ template<class GraphT, class GT = GraphTraits<GraphT> > class df_iterator : public forward_iterator<typename GT::NodeType, ptrdiff_t> { typedef forward_iterator<typename GT::NodeType, ptrdiff_t> 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<GraphT, GT> _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 b4a1b2969f..2bb2e68e67 100644 --- a/include/llvm/ADT/DepthFirstIterator.h +++ b/include/llvm/ADT/DepthFirstIterator.h @@ -17,7 +17,6 @@ template<class GraphT, class GT = GraphTraits<GraphT> > class df_iterator : public forward_iterator<typename GT::NodeType, ptrdiff_t> { typedef forward_iterator<typename GT::NodeType, ptrdiff_t> 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<GraphT, GT> _Self; // Provide static begin and end methods as our public "constructors" |