Skip to content

Commit 6528157

Browse files
committed
[lldb][swig] Use the correct variable in the return statement
The issue was introduced in llvm#104523. The code introduces the `ret_val` variable but does not use it. Instead it returns a pointer, which gets implicitly converted to bool.
1 parent aa08843 commit 6528157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/bindings/python/python-wrapper.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPython_ShouldHide(
837837
bool ret_val = result ? PyObject_IsTrue(result) : false;
838838
Py_XDECREF(result);
839839

840-
return result;
840+
return ret_val;
841841
}
842842

843843
void *lldb_private::python::SWIGBridge::LLDBSWIGPython_GetDynamicSetting(

0 commit comments

Comments
 (0)