summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-01-13 18:23:39 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-01-13 18:25:23 -0800
commitd1e3b23be46ac3ada8f5fe844629ad5bc233c24d (patch)
tree4d83cbc018cd7fcc84a3b6ce50f17632004b3d40 /lldb/source
parent84baf123a5213512e92e7deca2d111e00c2b97da (diff)
downloadbcm5719-llvm-d1e3b23be46ac3ada8f5fe844629ad5bc233c24d.tar.gz
bcm5719-llvm-d1e3b23be46ac3ada8f5fe844629ad5bc233c24d.zip
[lldb/Utility] Add std::move to make placate clang 3.8
This fixes an error thrown by clang 3.8 that no viable conversion from returned value to the function return type.
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Utility/StructuredData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/StructuredData.cpp b/lldb/source/Utility/StructuredData.cpp
index 22477bdbe6c..d5d7a7ec99a 100644
--- a/lldb/source/Utility/StructuredData.cpp
+++ b/lldb/source/Utility/StructuredData.cpp
@@ -78,7 +78,7 @@ static StructuredData::ObjectSP ParseJSONObject(json::Object *object) {
if (StructuredData::ObjectSP value_sp = ParseJSONValue(value))
dict_up->AddItem(key, value_sp);
}
- return dict_up;
+ return std::move(dict_up);
}
static StructuredData::ObjectSP ParseJSONArray(json::Array *array) {
@@ -87,7 +87,7 @@ static StructuredData::ObjectSP ParseJSONArray(json::Array *array) {
if (StructuredData::ObjectSP value_sp = ParseJSONValue(value))
array_up->AddItem(value_sp);
}
- return array_up;
+ return std::move(array_up);
}
StructuredData::ObjectSP
OpenPOWER on IntegriCloud