[Lldb-commits] [lldb] d1e3b23 - [lldb/Utility] Add std::move to make placate clang 3.8
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 13 18:25:43 PST 2020
Author: Jonas Devlieghere
Date: 2020-01-13T18:25:23-08:00
New Revision: d1e3b23be46ac3ada8f5fe844629ad5bc233c24d
URL: https://github.com/llvm/llvm-project/commit/d1e3b23be46ac3ada8f5fe844629ad5bc233c24d
DIFF: https://github.com/llvm/llvm-project/commit/d1e3b23be46ac3ada8f5fe844629ad5bc233c24d.diff
LOG: [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.
Added:
Modified:
lldb/source/Utility/StructuredData.cpp
Removed:
################################################################################
diff --git a/lldb/source/Utility/StructuredData.cpp b/lldb/source/Utility/StructuredData.cpp
index 22477bdbe6c8..d5d7a7ec99a0 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
More information about the lldb-commits
mailing list