Skip to content

Commit 392963b

Browse files
jplesniktstellar
authored andcommitted
[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. swig/swig@d1055f4 (cherry picked from commit f0a25fe)
1 parent 68799e7 commit 392963b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/bindings/python/python-typemaps.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ template <> bool SetNumberFromPyObject<double>(double &number, PyObject *obj) {
435435

436436
%typemap(out) lldb::FileSP {
437437
$result = nullptr;
438-
lldb::FileSP &sp = $1;
438+
const lldb::FileSP &sp = $1;
439439
if (sp) {
440440
PythonFile pyfile = unwrapOrSetPythonException(PythonFile::FromFile(*sp));
441441
if (!pyfile.IsValid())

0 commit comments

Comments
 (0)