Skip to content

Commit

Permalink
Merge pull request #5985 from apple/🍒/rebranch/9ec115978ea2bdfc60800c…
Browse files Browse the repository at this point in the history
…d3c21264341cdc8b0a

[lldb] Fix compile error in Lua typemap
  • Loading branch information
JDevlieghere committed Jan 12, 2023
2 parents 42bb361 + 75c3cbf commit e94c0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/bindings/lua/lua-typemaps.swig
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ LLDB_NUMBER_TYPEMAP(enum SWIGTYPE);
// Typemap for file handles (e.g. used in SBDebugger::GetOutputFileHandle)

%typemap(out) lldb::FileSP {
lldb::FileSP &sp = $1;
lldb::FileSP sp = $1;
if (sp && sp->IsValid()) {
luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream));
p->closef = &LLDBSwigLuaCloseFileHandle;
Expand Down

0 comments on commit e94c0de

Please sign in to comment.