Simplify make_range by using move semantics
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 10 Apr 2014 22:03:48 +0000 (22:03 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 10 Apr 2014 22:03:48 +0000 (22:03 +0000)
commit83ee9561046f5c6b08ab7fa01781083214102a32
treecd090ac8e248c193fa9586ba6786bc43fff337b5
parenteb690d84918b1525214a3b29916ef81ff4d6def2
Simplify make_range by using move semantics

Move the iterators into the range the same way the range's ctor moves
them into the members.

Also remove some redundant top level parens in the return statement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205993 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/iterator_range.h