mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Invalidate SCEV entry when returning to lower frame.
Thanks to Zhongwei Yao. #1115
This commit is contained in:
parent
433d7e8d8d
commit
65c8493907
@ -755,6 +755,7 @@ void lj_record_ret(jit_State *J, BCReg rbase, ptrdiff_t gotresults)
|
|||||||
emitir(IRTG(IR_RETF, IRT_P32), trpt, trpc);
|
emitir(IRTG(IR_RETF, IRT_P32), trpt, trpc);
|
||||||
J->retdepth++;
|
J->retdepth++;
|
||||||
J->needsnap = 1;
|
J->needsnap = 1;
|
||||||
|
J->scev.idx = REF_NIL;
|
||||||
lua_assert(J->baseslot == 1);
|
lua_assert(J->baseslot == 1);
|
||||||
/* Shift result slots up and clear the slots of the new frame below. */
|
/* Shift result slots up and clear the slots of the new frame below. */
|
||||||
memmove(J->base + cbase, J->base-1, sizeof(TRef)*nresults);
|
memmove(J->base + cbase, J->base-1, sizeof(TRef)*nresults);
|
||||||
|
Loading…
Reference in New Issue
Block a user