Drop bc field in GCproto since the bytecode is colocated.

This commit is contained in:
Mike Pall
2010-02-08 20:17:34 +01:00
parent 2ddea3838d
commit d5a46621f9
7 changed files with 23 additions and 29 deletions

View File

@@ -1033,7 +1033,6 @@ static void fs_fixup_bc(FuncState *fs, GCproto *pt, BCIns *bc, BCLine *lineinfo)
{
MSize i, n = fs->pc;
BCInsLine *base = fs->bcbase;
setmref(pt->bc, bc);
setmref(pt->lineinfo, lineinfo);
pt->sizebc = n;
bc[n] = ~0u; /* Close potentially uninitialized gap between bc and kgc. */