diff --git a/llvm/include/llvm/ADT/iterator_range.h b/llvm/include/llvm/ADT/iterator_range.h --- a/llvm/include/llvm/ADT/iterator_range.h +++ b/llvm/include/llvm/ADT/iterator_range.h @@ -53,8 +53,7 @@ detail::IterOfRange, IteratorT>::value> * = nullptr> #endif iterator_range(Container &&c) - : begin_iterator(adl_begin(std::forward(c))), - end_iterator(adl_end(std::forward(c))) { + : begin_iterator(adl_begin(c)), end_iterator(adl_end(c)) { } iterator_range(IteratorT begin_iterator, IteratorT end_iterator) : begin_iterator(std::move(begin_iterator)),