aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/PostOrderIterator.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-25 17:46:25 +0000
committerChris Lattner <sabre@nondot.org>2003-07-25 17:46:25 +0000
commitd091d85c15d56adca38f3522ff4ac0997141e326 (patch)
treefc5be032824ed0c412b504a6023ac1a82a73c16b /include/llvm/ADT/PostOrderIterator.h
parent0192e36cc7d632ec8f9f3e4a8fd2fa6a7403264c (diff)
downloadexternal_llvm-d091d85c15d56adca38f3522ff4ac0997141e326.zip
external_llvm-d091d85c15d56adca38f3522ff4ac0997141e326.tar.gz
external_llvm-d091d85c15d56adca38f3522ff4ac0997141e326.tar.bz2
Fix visibility problem exposed by GCC 3.3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/PostOrderIterator.h')
-rw-r--r--include/llvm/ADT/PostOrderIterator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/PostOrderIterator.h b/include/llvm/ADT/PostOrderIterator.h
index 084d38f..1781254 100644
--- a/include/llvm/ADT/PostOrderIterator.h
+++ b/include/llvm/ADT/PostOrderIterator.h
@@ -17,7 +17,6 @@
template<class GraphT, class GT = GraphTraits<GraphT> >
class po_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;
@@ -43,6 +42,7 @@ class po_iterator : public forward_iterator<typename GT::NodeType, ptrdiff_t> {
}
inline po_iterator() { /* End is when stack is empty */ }
public:
+ typedef typename super::pointer pointer;
typedef po_iterator<GraphT, GT> _Self;
// Provide static "constructors"...