Skip to content

Commit 113f3ca

Browse files
committed
[lldb] Fix compile error in Lua typemap
Fix error "non-const lvalue reference to type 'lldb::FileSP' cannot bind to a value of unrelated type" in Lua typemap. (cherry picked from commit 9ec1159)
1 parent 6df08d5 commit 113f3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/bindings/lua/lua-typemaps.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ LLDB_NUMBER_TYPEMAP(enum SWIGTYPE);
247247
// Typemap for file handles (e.g. used in SBDebugger::GetOutputFileHandle)
248248

249249
%typemap(out) lldb::FileSP {
250-
lldb::FileSP &sp = $1;
250+
lldb::FileSP sp = $1;
251251
if (sp && sp->IsValid()) {
252252
luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream));
253253
p->closef = &LLDBSwigLuaCloseFileHandle;

0 commit comments

Comments
 (0)