mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-19 21:43:27 +00:00
Extend scope of local vars in debug info beyond final return.
This commit is contained in:
parent
2e5d3740ae
commit
4f8d7be8ea
@ -1155,9 +1155,9 @@ static GCproto *fs_finish(LexState *ls, BCLine line)
|
|||||||
GCproto *pt;
|
GCproto *pt;
|
||||||
|
|
||||||
/* Apply final fixups. */
|
/* Apply final fixups. */
|
||||||
var_remove(ls, 0);
|
|
||||||
lua_assert(fs->bl == NULL);
|
lua_assert(fs->bl == NULL);
|
||||||
fs_fixup_ret(fs);
|
fs_fixup_ret(fs);
|
||||||
|
var_remove(ls, 0);
|
||||||
|
|
||||||
/* Calculate total size of prototype including all colocated arrays. */
|
/* Calculate total size of prototype including all colocated arrays. */
|
||||||
sizept = sizeof(GCproto) + fs->pc*sizeof(BCIns) + fs->nkgc*sizeof(GCRef);
|
sizept = sizeof(GCproto) + fs->pc*sizeof(BCIns) + fs->nkgc*sizeof(GCRef);
|
||||||
|
Loading…
Reference in New Issue
Block a user