From bdd9df49fc747e4068cc6ef4dc6b9e0497dda49c Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Wed, 9 Jul 2014 19:14:34 +0000 Subject: [PATCH] Use simpler constructor for range adapter. It is a good idea, it's slightly clearer and simpler. Unfortunately the headline news is: we save one line! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212641 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Option/ArgList.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/llvm/Option/ArgList.h b/include/llvm/Option/ArgList.h index a0b00b5d87e..d46b0e892fa 100644 --- a/include/llvm/Option/ArgList.h +++ b/include/llvm/Option/ArgList.h @@ -153,8 +153,7 @@ public: iterator_range filtered(OptSpecifier Id0 = 0U, OptSpecifier Id1 = 0U, OptSpecifier Id2 = 0U) const { - return iterator_range(filtered_begin(Id0, Id1, Id2), - filtered_end()); + return make_range(filtered_begin(Id0, Id1, Id2), filtered_end()); } /// @} -- 2.34.1