aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-07 18:43:48 +0000
committerChris Lattner <sabre@nondot.org>2009-07-07 18:43:48 +0000
commit70ee0b9e5a5e52dd58cb85b1f67b5f1b1ba81f7c (patch)
treeb15fe46f228854d80d557f169a2cee514d0ecf18 /include/llvm/ADT
parent11ac0265348c8277259e0ca6b0931d92dcc0e908 (diff)
downloadexternal_llvm-70ee0b9e5a5e52dd58cb85b1f67b5f1b1ba81f7c.zip
external_llvm-70ee0b9e5a5e52dd58cb85b1f67b5f1b1ba81f7c.tar.gz
external_llvm-70ee0b9e5a5e52dd58cb85b1f67b5f1b1ba81f7c.tar.bz2
fix a bug in post-order iterators with external storage, patch by
Olaf Krzikalla! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/PostOrderIterator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/PostOrderIterator.h b/include/llvm/ADT/PostOrderIterator.h
index b477d0a..227472b 100644
--- a/include/llvm/ADT/PostOrderIterator.h
+++ b/include/llvm/ADT/PostOrderIterator.h
@@ -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;