llvm-toolchain/debian/patches/lldb-swig-2.diff
Sylvestre Ledru cdbc33a6e0 * New upstream release (Closes: #1023455)
* Cherry-pick patches to fix the FTBFS with swig + lldb (Closes: #1023444)
2022-11-04 19:23:33 +01:00

14 lines
570 B
Diff

diff --git a/lldb/bindings/python/python-typemaps.swig b/lldb/bindings/python/python-typemaps.swig
index 203be803d2ebd..11f68d59ae7be 100644
--- a/lldb/bindings/python/python-typemaps.swig
+++ b/lldb/bindings/python/python-typemaps.swig
@@ -435,7 +435,7 @@ template <> bool SetNumberFromPyObject<double>(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())