[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.

d1055f4b3d
This commit is contained in:
Jitka Plesnikova 2022-09-21 11:42:46 +02:00 committed by serge-sans-paille
parent 031a7ad575
commit f0a25fe0b7

View File

@ -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())