[llvm-branch-commits] [lldb] 392963b - [lldb] Fix 'error: non-const lvalue...' caused by SWIG 4.1.0
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Nov 15 15:42:17 PST 2022
Author: Jitka Plesnikova
Date: 2022-11-15T15:42:01-08:00
New Revision: 392963bb1daf7ec8822a0f02929a8ada17eb0a0a
URL: https://github.com/llvm/llvm-project/commit/392963bb1daf7ec8822a0f02929a8ada17eb0a0a
DIFF: https://github.com/llvm/llvm-project/commit/392963bb1daf7ec8822a0f02929a8ada17eb0a0a.diff
LOG: [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)
Added:
Modified:
lldb/bindings/python/python-typemaps.swig
Removed:
################################################################################
diff --git a/lldb/bindings/python/python-typemaps.swig b/lldb/bindings/python/python-typemaps.swig
index bf3de66b91bf1..d45431c771ca3 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())
More information about the llvm-branch-commits
mailing list