Fix broken ipo_ext_iterator constructors.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 17 Jul 2012 17:57:25 +0000 (17:57 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 17 Jul 2012 17:57:25 +0000 (17:57 +0000)
These functions have obviously never been used before.
They should be identical to the idf_ext_iterator counterparts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160381 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/PostOrderIterator.h

index c0e38292ecc0afb5a78b2b9647a4a237a12b3e30..7f6350e4443e1567cc712b1e8b6d872bd9bb207a 100644 (file)
@@ -212,14 +212,14 @@ ipo_iterator<T> ipo_end(T G){
   return ipo_iterator<T>::end(G);
 }
 
-//Provide global definitions of external inverse postorder iterators...
+// Provide global definitions of external inverse postorder iterators...
 template <class T,
           class SetType = std::set<typename GraphTraits<T>::NodeType*> >
 struct ipo_ext_iterator : public ipo_iterator<T, SetType, true> {
   ipo_ext_iterator(const ipo_iterator<T, SetType, true> &V) :
-    ipo_iterator<T, SetType, true>(&V) {}
+    ipo_iterator<T, SetType, true>(V) {}
   ipo_ext_iterator(const po_iterator<Inverse<T>, SetType, true> &V) :
-    ipo_iterator<T, SetType, true>(&V) {}
+    ipo_iterator<T, SetType, true>(V) {}
 };
 
 template <class T, class SetType>