From 458532c2dd24708181cdce77b8f60938fdc90dc6 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 4 Dec 2022 14:14:02 +0100 Subject: Vendor import of llvm-project branch release/15.x llvmorg-15.0.6-0-g088f33605d8a. --- lldb/bindings/python/python-typemaps.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/bindings/python/python-typemaps.swig') diff --git a/lldb/bindings/python/python-typemaps.swig b/lldb/bindings/python/python-typemaps.swig index bf3de66b91bf..d45431c771ca 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()) -- cgit v1.3