mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-08 21:37:35 +00:00
fix a bug in post-order iterators with external storage, patch by
Olaf Krzikalla! llvm-svn: 74933
This commit is contained in:
parent
2bbbcbca79
commit
f480b139c8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user