From 19580c3755a1dc198005839a73a7bad5c108f203 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 29 Jan 2020 00:06:33 +0100 Subject: [PATCH] Fix implicit conversion in the lldb Python plugin --- lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 python::As(Expected &&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 { -- 2.7.4