From c1566308aa7596efad6d3ddc852eb3b443748309 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 25 Aug 2016 08:22:14 +0000 Subject: [PATCH] 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 llvm-svn: 279724 --- lldb/tools/debugserver/source/JSON.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lldb/tools/debugserver/source/JSON.cpp b/lldb/tools/debugserver/source/JSON.cpp index e7e0423e9e81..9d56d1914aa6 100644 --- a/lldb/tools/debugserver/source/JSON.cpp +++ b/lldb/tools/debugserver/source/JSON.cpp @@ -372,7 +372,7 @@ JSONParser::GetToken (std::string &value) if (escaped_ch == -1) { error << "error: an error occurred getting a character from offset " <