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.
Paths
| Differential D23825
Fix warnings preventing copy elision. ClosedPublic Authored by wttsugrii on Aug 23 2016, 7:24 PM.
Details Summary Moving a temporary object prevents copy elision, which is exactly The fix is simply removal of std::move applied to temporary objects.
Diff Detail Event Timelinewttsugrii updated this object. This revision is now accepted and ready to land.Aug 24 2016, 8:39 AM Comment Actions Thanks for the review @clayborg. Could someone please commit this patch to lldb repo?
Revision Contents
Diff 69070 tools/debugserver/source/JSON.cpp
|