Author: Martin Storsjö Date: 2020-10-24T09:33:01+03:00 New Revision: 84ce6b9991bb6db1c37897aca55978a377ce931a
URL: https://github.com/llvm/llvm-project/commit/84ce6b9991bb6db1c37897aca55978a377ce931a DIFF: https://github.com/llvm/llvm-project/commit/84ce6b9991bb6db1c37897aca55978a377ce931a.diff LOG: [lldb] Fix building with GCC 7. NFC. Added: Modified: lldb/source/Target/Target.cpp Removed: ################################################################################ diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index ee69c6b70357..6b8a053b972e 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -2266,7 +2266,7 @@ Target::CreateUtilityFunction(std::string expression, std::string name, return llvm::make_error<llvm::StringError>(diagnostics.GetString(), llvm::inconvertibleErrorCode()); - return utility_fn; + return std::move(utility_fn); } void Target::SettingsInitialize() { Process::SettingsInitialize(); } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits