Skip to content

Commit

Permalink
[lldb] Fix 'error: non-const lvalue...' caused by SWIG 4.1.0
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jplesnik authored and tstellar committed Nov 15, 2022
1 parent 68799e7 commit 392963b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/bindings/python/python-typemaps.swig
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 392963b

Please sign in to comment.