diff --git a/include/llvm/ADT/PostOrderIterator.h b/include/llvm/ADT/PostOrderIterator.h index 759a2db24f2..ce343a161b7 100644 --- a/include/llvm/ADT/PostOrderIterator.h +++ b/include/llvm/ADT/PostOrderIterator.h @@ -215,8 +215,8 @@ struct ipo_iterator : public po_iterator, SetType, External > { }; template -ipo_iterator ipo_begin(const T &G, bool Reverse = false) { - return ipo_iterator::begin(G, Reverse); +ipo_iterator ipo_begin(const T &G) { + return ipo_iterator::begin(G); } template @@ -225,8 +225,8 @@ ipo_iterator ipo_end(const T &G){ } template -iterator_range> inverse_post_order(const T &G, bool Reverse = false) { - return make_range(ipo_begin(G, Reverse), ipo_end(G)); +iterator_range> inverse_post_order(const T &G) { + return make_range(ipo_begin(G), ipo_end(G)); } // Provide global definitions of external inverse postorder iterators...