Add missing std::move in Replacements::add
authorAlexander Shaposhnikov <shal1t712@gmail.com>
Fri, 30 Sep 2016 21:05:45 +0000 (21:05 +0000)
committerAlexander Shaposhnikov <shal1t712@gmail.com>
Fri, 30 Sep 2016 21:05:45 +0000 (21:05 +0000)
commit6237a21d8c6ba859e043baec349ea185fa971473
treeb767ce0e99d081ca4b3018093907b8efefcc7672
parenta675e0e03c4831e612dbad2128933d0bc7c1e9a2
Add missing std::move in Replacements::add

This diff adds std::move to avoid copying of
the Replacement NewR in the method Replacements::add.

Test plan: make -j8 check-all

Differential revision: https://reviews.llvm.org/D25049

llvm-svn: 282949
clang/lib/Tooling/Core/Replacement.cpp