lldb/lldb-15.0.6-swig-4.1.0-2.patch

12 lines
519 B
Diff
Raw Permalink Normal View History

--- lldb-15.0.6.src/bindings/lua/lua-typemaps.swig.orig 2023-01-01 14:17:02.269067778 +0100
+++ lldb-15.0.6.src/bindings/lua/lua-typemaps.swig 2023-01-01 14:17:28.746900301 +0100
@@ -247,7 +247,7 @@
// Typemap for file handles (e.g. used in SBDebugger::GetOutputFileHandle)
%typemap(out) lldb::FileSP {
- lldb::FileSP &sp = $1;
+ const lldb::FileSP &sp = $1;
if (sp && sp->IsValid()) {
luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream));
p->closef = &LLDBSwigLuaCloseFileHandle;