[Lldb-commits] [lldb] ad75775 - Revert "Revert "[lldb][swig] Use the correct variable in the return statement""

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 23 11:06:23 PDT 2024


Author: Adrian Prantl
Date: 2024-08-23T11:06:01-07:00
New Revision: ad7577524286ae6070dc7f18bde35cf050d31e5e

URL: https://github.com/llvm/llvm-project/commit/ad7577524286ae6070dc7f18bde35cf050d31e5e
DIFF: https://github.com/llvm/llvm-project/commit/ad7577524286ae6070dc7f18bde35cf050d31e5e.diff

LOG: Revert "Revert "[lldb][swig] Use the correct variable in the return statement""

This reverts commit 7323e7eee3a819e9a2d8ec29f00d362bcad87731.

Added: 
    

Modified: 
    lldb/bindings/python/python-wrapper.swig

Removed: 
    


################################################################################
diff  --git a/lldb/bindings/python/python-wrapper.swig b/lldb/bindings/python/python-wrapper.swig
index 2ce42e3e017d5b..360c392235a866 100644
--- a/lldb/bindings/python/python-wrapper.swig
+++ b/lldb/bindings/python/python-wrapper.swig
@@ -837,7 +837,7 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPython_ShouldHide(
   bool ret_val = result ? PyObject_IsTrue(result) : false;
   Py_XDECREF(result);
 
-  return result;
+  return ret_val;
 }
 
 void *lldb_private::python::SWIGBridge::LLDBSWIGPython_GetDynamicSetting(


        


More information about the lldb-commits mailing list