diff --git a/include/Support/ilist b/include/Support/ilist index 83a1fe670e9..afd858d5590 100644 --- a/include/Support/ilist +++ b/include/Support/ilist @@ -74,11 +74,13 @@ class ilist_iterator typedef ilist_traits Traits; typedef bidirectional_iterator super; - typedef typename super::pointer pointer; - typedef typename super::reference reference; - pointer NodePtr; public: typedef size_t size_type; + typedef typename super::pointer pointer; + typedef typename super::reference reference; +private: + pointer NodePtr; +public: ilist_iterator(pointer NP) : NodePtr(NP) {} ilist_iterator(reference NR) : NodePtr(&NR) {} diff --git a/include/llvm/ADT/ilist b/include/llvm/ADT/ilist index 83a1fe670e9..afd858d5590 100644 --- a/include/llvm/ADT/ilist +++ b/include/llvm/ADT/ilist @@ -74,11 +74,13 @@ class ilist_iterator typedef ilist_traits Traits; typedef bidirectional_iterator super; - typedef typename super::pointer pointer; - typedef typename super::reference reference; - pointer NodePtr; public: typedef size_t size_type; + typedef typename super::pointer pointer; + typedef typename super::reference reference; +private: + pointer NodePtr; +public: ilist_iterator(pointer NP) : NodePtr(NP) {} ilist_iterator(reference NR) : NodePtr(&NR) {}