[llvm] r250153 - Remove unnecessary argument in ipo iterator
Michael Liao via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 13 00:26:04 PDT 2015
Author: hliao
Date: Tue Oct 13 02:26:04 2015
New Revision: 250153
URL: http://llvm.org/viewvc/llvm-project?rev=250153&view=rev
Log:
Remove unnecessary argument in ipo iterator
- Otherwise, it won't be compiled if that template is instantiated.
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=250153&r1=250152&r2=250153&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/PostOrderIterator.h (original)
+++ llvm/trunk/include/llvm/ADT/PostOrderIterator.h Tue Oct 13 02:26:04 2015
@@ -215,8 +215,8 @@ struct ipo_iterator : public po_iterator
};
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...
More information about the llvm-commits
mailing list