aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2020-01-29 00:06:33 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2020-01-29 00:07:50 +0100
commit19580c3755a1dc198005839a73a7bad5c108f203 (patch)
tree6804a6a2f8b1ea04b37cb294a78935e72d2fe273 /lldb/source/Plugins/ScriptInterpreter/Python
parent620f5faf1f340e594bd9cac39a64d9236a324fb9 (diff)
downloadllvm-19580c3755a1dc198005839a73a7bad5c108f203.zip
llvm-19580c3755a1dc198005839a73a7bad5c108f203.tar.gz
llvm-19580c3755a1dc198005839a73a7bad5c108f203.tar.bz2
Fix implicit conversion in the lldb Python plugin
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
index b659957..92060ee0 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 {