Fix warnings preventing copy elision.
authorPavel Labath <labath@google.com>
Thu, 25 Aug 2016 08:22:14 +0000 (08:22 +0000)
committerPavel Labath <labath@google.com>
Thu, 25 Aug 2016 08:22:14 +0000 (08:22 +0000)
commitc1566308aa7596efad6d3ddc852eb3b443748309
tree4f9c2028247f2c9f7ca3c7b19ab13c5b1e999a56
parent958fce3192ac088dae3371bdedb43ffd6d4a5402
Fix warnings preventing copy elision.

Summary:
Moving a temporary object prevents copy elision, which is exactly
what clang points out by warning about this pattern.

The fix is simply removal of std::move applied to temporary objects.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D23825
Author: Taras Tsugrii <ttsugrii@fb.com>

llvm-svn: 279724
lldb/tools/debugserver/source/JSON.cpp