summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang/0039-lldb-Fix-error-non-const-lvalue.-caused-by-SWIG-4.1..patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/clang/clang/0039-lldb-Fix-error-non-const-lvalue.-caused-by-SWIG-4.1..patch')
-rw-r--r--recipes-devtools/clang/clang/0039-lldb-Fix-error-non-const-lvalue.-caused-by-SWIG-4.1..patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/0039-lldb-Fix-error-non-const-lvalue.-caused-by-SWIG-4.1..patch b/recipes-devtools/clang/clang/0039-lldb-Fix-error-non-const-lvalue.-caused-by-SWIG-4.1..patch
new file mode 100644
index 0000000..230798a
--- /dev/null
+++ b/recipes-devtools/clang/clang/0039-lldb-Fix-error-non-const-lvalue.-caused-by-SWIG-4.1..patch
@@ -0,0 +1,30 @@
1From f0a25fe0b746f56295d5c02116ba28d2f965c175 Mon Sep 17 00:00:00 2001
2From: Jitka Plesnikova <jplesnik@redhat.com>
3Date: Wed, 21 Sep 2022 11:42:46 +0200
4Subject: [PATCH] [lldb] Fix 'error: non-const lvalue...' caused by SWIG 4.1.0
5
6Fix the failure caused by change in SwigValueWraper for C++11 and later
7for improved move semantics in SWIG commit.
8
9https://github.com/swig/swig/commit/d1055f4b3d51cb8060893f8036846ac743302dab
10
11Upstream-Status: Backport [https://github.com/llvm/llvm-project/commit/f0a25fe0b746f56295d5c02116ba28d2f965c175]
12---
13 lldb/bindings/python/python-typemaps.swig | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/lldb/bindings/python/python-typemaps.swig b/lldb/bindings/python/python-typemaps.swig
17index 203be803d2eb..11f68d59ae7b 100644
18--- a/lldb/bindings/python/python-typemaps.swig
19+++ b/lldb/bindings/python/python-typemaps.swig
20@@ -435,7 +435,7 @@ template <> bool SetNumberFromPyObject<double>(double &number, PyObject *obj) {
21
22 %typemap(out) lldb::FileSP {
23 $result = nullptr;
24- lldb::FileSP &sp = $1;
25+ const lldb::FileSP &sp = $1;
26 if (sp) {
27 PythonFile pyfile = unwrapOrSetPythonException(PythonFile::FromFile(*sp));
28 if (!pyfile.IsValid())
29--
302.36.0