From: Mike Pall Date: Fri, 12 Feb 2010 15:17:42 +0000 (+0100) Subject: Extend scope of local vars in debug info beyond final return. X-Git-Tag: v2.0.0-beta3~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8d7be8ea8a103f4d9046188d6005740b74f3d4;p=thirdparty%2FLuaJIT.git Extend scope of local vars in debug info beyond final return. --- diff --git a/src/lj_parse.c b/src/lj_parse.c index ed695e19..acc25519 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c @@ -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);