Skip to content

Commit 65c8493

Browse files
author
Mike Pall
committed
Invalidate SCEV entry when returning to lower frame.
Thanks to Zhongwei Yao. #1115
1 parent 433d7e8 commit 65c8493

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lj_record.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ void lj_record_ret(jit_State *J, BCReg rbase, ptrdiff_t gotresults)
755755
emitir(IRTG(IR_RETF, IRT_P32), trpt, trpc);
756756
J->retdepth++;
757757
J->needsnap = 1;
758+
J->scev.idx = REF_NIL;
758759
lua_assert(J->baseslot == 1);
759760
/* Shift result slots up and clear the slots of the new frame below. */
760761
memmove(J->base + cbase, J->base-1, sizeof(TRef)*nresults);

0 commit comments

Comments
 (0)