[Lldb-commits] [lldb] 19580c3 - Fix implicit conversion in the lldb Python plugin
Benjamin Kramer via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 28 15:08:04 PST 2020
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 {
More information about the lldb-commits
mailing list