fix a bug in post-order iterators with external storage, patch by
authorChris Lattner <sabre@nondot.org>
Tue, 7 Jul 2009 18:43:48 +0000 (18:43 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 7 Jul 2009 18:43:48 +0000 (18:43 +0000)
Olaf Krzikalla!

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

include/llvm/ADT/PostOrderIterator.h

index b477d0a8f0f5293e2996f59d41bf284e4403301d..227472b2dd74274826eda7950ed7750960821fd9 100644 (file)
@@ -71,7 +71,7 @@ class po_iterator : public forward_iterator<typename GT::NodeType, ptrdiff_t>,
   inline po_iterator() {} // End is when stack is empty.
 
   inline po_iterator(NodeType *BB, SetType &S) :
-    po_iterator_storage<SetType, ExtStorage>(&S) {
+    po_iterator_storage<SetType, ExtStorage>(S) {
     if(!S.count(BB)) {
       this->Visited.insert(BB);
       VisitStack.push(std::make_pair(BB, GT::child_begin(BB)));
@@ -80,7 +80,7 @@ class po_iterator : public forward_iterator<typename GT::NodeType, ptrdiff_t>,
   }
 
   inline po_iterator(SetType &S) :
-      po_iterator_storage<SetType, ExtStorage>(&S) {
+      po_iterator_storage<SetType, ExtStorage>(S) {
   } // End is when stack is empty.
 public:
   typedef typename super::pointer pointer;