mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
ce30766b67
@ -2177,6 +2177,8 @@ static void assign_adjust(LexState *ls, BCReg nvars, BCReg nexps, ExpDesc *e)
|
|||||||
bcemit_nil(fs, reg, (BCReg)extra);
|
bcemit_nil(fs, reg, (BCReg)extra);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (nexps > nvars)
|
||||||
|
ls->fs->freereg -= nexps - nvars; /* Drop leftover regs. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Recursively parse assignment statement. */
|
/* Recursively parse assignment statement. */
|
||||||
@ -2210,8 +2212,6 @@ static void parse_assignment(LexState *ls, LHSVarList *lh, BCReg nvars)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assign_adjust(ls, nvars, nexps, &e);
|
assign_adjust(ls, nvars, nexps, &e);
|
||||||
if (nexps > nvars)
|
|
||||||
ls->fs->freereg -= nexps - nvars; /* Drop leftover regs. */
|
|
||||||
}
|
}
|
||||||
/* Assign RHS to LHS and recurse downwards. */
|
/* Assign RHS to LHS and recurse downwards. */
|
||||||
expr_init(&e, VNONRELOC, ls->fs->freereg-1);
|
expr_init(&e, VNONRELOC, ls->fs->freereg-1);
|
||||||
|
Loading…
Reference in New Issue
Block a user