summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJitka Plesnikova <jplesnik@redhat.com>2022-09-21 11:42:46 +0200
committerTom Stellard <tstellar@redhat.com>2022-11-15 15:42:01 -0800
commit392963bb1daf7ec8822a0f02929a8ada17eb0a0a (patch)
treed00f03078b7c885980fce1d7c00a622e22a9fbf7
parent68799e789fc5f2a5ff25beffa4dc8828780c08fb (diff)
downloadllvm-392963bb1daf7ec8822a0f02929a8ada17eb0a0a.tar.gz
[lldb] Fix 'error: non-const lvalue...' caused by SWIG 4.1.0
Fix the failure caused by change in SwigValueWraper for C++11 and later for improved move semantics in SWIG commit. https://github.com/swig/swig/commit/d1055f4b3d51cb8060893f8036846ac743302dab (cherry picked from commit f0a25fe0b746f56295d5c02116ba28d2f965c175)
-rw-r--r--lldb/bindings/python/python-typemaps.swig2
1 files changed, 1 insertions, 1 deletions
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>(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())