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:
Michael Liao 2015-10-13 07:26:04 +00:00
parent 8b8f8b6daa
commit ca8c43fa4d

View File

@ -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...