[llvm-commits] [llvm] r74933 - /llvm/trunk/include/llvm/ADT/PostOrderIterator.h

Chris Lattner sabre at nondot.org
Tue Jul 7 11:43:49 PDT 2009


Author: lattner
Date: Tue Jul  7 13:43:48 2009
New Revision: 74933

URL: http://llvm.org/viewvc/llvm-project?rev=74933&view=rev
Log:
fix a bug in post-order iterators with external storage, patch by
Olaf Krzikalla!

Modified:
    llvm/trunk/include/llvm/ADT/PostOrderIterator.h

Modified: llvm/trunk/include/llvm/ADT/PostOrderIterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/PostOrderIterator.h?rev=74933&r1=74932&r2=74933&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/PostOrderIterator.h (original)
+++ llvm/trunk/include/llvm/ADT/PostOrderIterator.h Tue Jul  7 13:43:48 2009
@@ -71,7 +71,7 @@
   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 @@
   }
 
   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;





More information about the llvm-commits mailing list