aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/DepthFirstIterator.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-25 17:49:28 +0000
committerChris Lattner <sabre@nondot.org>2003-07-25 17:49:28 +0000
commit02a31a5af68aaca1b54c7121f04cb56828ccefc2 (patch)
tree100c298c0e27d0c32397c46f873a67b0e83b81cb /include/llvm/ADT/DepthFirstIterator.h
parentd091d85c15d56adca38f3522ff4ac0997141e326 (diff)
downloadexternal_llvm-02a31a5af68aaca1b54c7121f04cb56828ccefc2.zip
external_llvm-02a31a5af68aaca1b54c7121f04cb56828ccefc2.tar.gz
external_llvm-02a31a5af68aaca1b54c7121f04cb56828ccefc2.tar.bz2
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
Diffstat (limited to 'include/llvm/ADT/DepthFirstIterator.h')
-rw-r--r--include/llvm/ADT/DepthFirstIterator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/DepthFirstIterator.h b/include/llvm/ADT/DepthFirstIterator.h
index b4a1b29..2bb2e68 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"