Author: Benjamin Kramer Date: 2020-01-29T00:07:50+01:00 New Revision: 19580c3755a1dc198005839a73a7bad5c108f203
URL: https://github.com/llvm/llvm-project/commit/19580c3755a1dc198005839a73a7bad5c108f203 DIFF: https://github.com/llvm/llvm-project/commit/19580c3755a1dc198005839a73a7bad5c108f203.diff LOG: Fix implicit conversion in the lldb Python plugin Added: Modified: lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index b659957f8dc4..92060ee08cdc 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -58,7 +58,7 @@ Expected<std::string> python::As<std::string>(Expected<PythonObject> &&obj) { auto utf8 = str.AsUTF8(); if (!utf8) return utf8.takeError(); - return utf8.get(); + return std::string(utf8.get()); } void StructuredPythonObject::Serialize(llvm::json::OStream &s) const { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits