Browse Source

Extend scope of local vars in debug info beyond final return.

Mike Pall 15 years ago
parent
commit
4f8d7be8ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lj_parse.c

+ 1 - 1
src/lj_parse.c

@@ -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);