mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-18 07:52:35 +00:00
Remove unnecessary argument in ipo iterator
- Otherwise, it won't be compiled if that template is instantiated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250153 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8b8f8b6daa
commit
ca8c43fa4d
@ -215,8 +215,8 @@ struct ipo_iterator : public po_iterator<Inverse<T>, SetType, External > {
|
||||
};
|
||||
|
||||
template <class T>
|
||||
ipo_iterator<T> ipo_begin(const T &G, bool Reverse = false) {
|
||||
return ipo_iterator<T>::begin(G, Reverse);
|
||||
ipo_iterator<T> ipo_begin(const T &G) {
|
||||
return ipo_iterator<T>::begin(G);
|
||||
}
|
||||
|
||||
template <class T>
|
||||
@ -225,8 +225,8 @@ ipo_iterator<T> ipo_end(const T &G){
|
||||
}
|
||||
|
||||
template <class T>
|
||||
iterator_range<ipo_iterator<T>> inverse_post_order(const T &G, bool Reverse = false) {
|
||||
return make_range(ipo_begin(G, Reverse), ipo_end(G));
|
||||
iterator_range<ipo_iterator<T>> inverse_post_order(const T &G) {
|
||||
return make_range(ipo_begin(G), ipo_end(G));
|
||||
}
|
||||
|
||||
// Provide global definitions of external inverse postorder iterators...
|
||||
|
Loading…
x
Reference in New Issue
Block a user