From: LLVM Packaging Team Date: Thu, 7 Sep 2023 22:41:35 +0000 (+0100) Subject: lldb-swig-2 X-Git-Tag: archive/raspbian/1%14.0.6-16+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=123a28ac5ec27987499afd4c77f91315b4714c9e;p=llvm-toolchain-14.git lldb-swig-2 Gbp-Pq: Topic lldb Gbp-Pq: Name lldb-swig-2.diff --- diff --git a/lldb/bindings/python/python-typemaps.swig b/lldb/bindings/python/python-typemaps.swig index bf3de66b91..d45431c771 100644 --- a/lldb/bindings/python/python-typemaps.swig +++ b/lldb/bindings/python/python-typemaps.swig @@ -435,7 +435,7 @@ template <> bool SetNumberFromPyObject(double &number, PyObject *obj) { %typemap(out) lldb::FileSP { $result = nullptr; - lldb::FileSP &sp = $1; + const lldb::FileSP &sp = $1; if (sp) { PythonFile pyfile = unwrapOrSetPythonException(PythonFile::FromFile(*sp)); if (!pyfile.IsValid())