[Lldb-commits] [lldb] 6c2bf01 - [lldb/python] Fix a compile error in 7406d236d8

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 20 01:00:01 PST 2021


Author: Pavel Labath
Date: 2021-12-20T09:57:29+01:00
New Revision: 6c2bf01270a8a52b7986d5c49eaa7ad1c7083ec5

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

LOG: [lldb/python] Fix a compile error in 7406d236d8

cannot pass object of non-trivial type
'lldb_private::python::PythonObject' through variadic function

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 b03d7c02eaa15..5f85af2ba6ce2 100644
--- a/lldb/bindings/python/python-wrapper.swig
+++ b/lldb/bindings/python/python-wrapper.swig
@@ -920,7 +920,7 @@ PyObject *lldb_private::LLDBSwigPython_GetRecognizedArguments(
 
   PythonString str(callee_name);
   PyObject *result =
-      PyObject_CallMethodObjArgs(implementor, str.get(), arg, NULL);
+      PyObject_CallMethodObjArgs(implementor, str.get(), arg.get(), NULL);
   return result;
 }
 


        


More information about the lldb-commits mailing list