[Lldb-commits] [lldb] 84ce6b9 - [lldb] Fix building with GCC 7. NFC.

Martin Storsjö via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 23 23:33:10 PDT 2020


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(); }


        


More information about the lldb-commits mailing list