[Lldb-commits] [lldb] [lldb] Replace condition that always evaluates to false (PR #89685)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 22 16:19:04 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Troy Butler (Troy-Butler)
<details>
<summary>Changes</summary>
Addresses issue #<!-- -->87243.
---
Full diff: https://github.com/llvm/llvm-project/pull/89685.diff
1 Files Affected:
- (modified) lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp (+1-1)
``````````diff
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
index ea0a1cdff40f1e..7c7035e0c86c9e 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
@@ -61,7 +61,7 @@ Expected<std::string> python::As<std::string>(Expected<PythonObject> &&obj) {
if (!obj)
return obj.takeError();
PyObject *str_obj = PyObject_Str(obj.get().get());
- if (!obj)
+ if (!str_obj)
return llvm::make_error<PythonException>();
auto str = Take<PythonString>(str_obj);
auto utf8 = str.AsUTF8();
``````````
</details>
https://github.com/llvm/llvm-project/pull/89685
More information about the lldb-commits
mailing list