]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Extend scope of local vars in debug info beyond final return.
authorMike Pall <mike>
Fri, 12 Feb 2010 15:17:42 +0000 (16:17 +0100)
committerMike Pall <mike>
Fri, 12 Feb 2010 15:17:42 +0000 (16:17 +0100)
src/lj_parse.c

index ed695e193935fd4308ccc218e211ae03c98ca7da..acc25519c96f552f40d64a3b2bcb70d467d3f27b 100644 (file)
@@ -1155,9 +1155,9 @@ static GCproto *fs_finish(LexState *ls, BCLine line)
   GCproto *pt;
 
   /* Apply final fixups. */
-  var_remove(ls, 0);
   lua_assert(fs->bl == NULL);
   fs_fixup_ret(fs);
+  var_remove(ls, 0);
 
   /* Calculate total size of prototype including all colocated arrays. */
   sizept = sizeof(GCproto) + fs->pc*sizeof(BCIns) + fs->nkgc*sizeof(GCRef);