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
  • Loading branch information
jplesnik authored and serge-sans-paille committed Sep 30, 2022
1 parent 031a7ad commit f0a25fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/bindings/python/python-typemaps.swig
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 f0a25fe

Please sign in to comment.