[Lldb-commits] [PATCH] Fix warnings preventing copy elision.

2016-08-23 Thread Taras Tsugrii via lldb-commits
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. Differential Revision: https://reviews.llvm.org/D23825 --- tools/debugserver/source/JSON.cpp | 20 +

[Lldb-commits] [PATCH] Fix warnings preventing copy elision.

2016-08-23 Thread Taras Tsugrii via lldb-commits
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. Differential Revision: https://reviews.llvm.org/D23825 --- tools/debugserver/source/JSON.cpp | 20 +