diff options
-rw-r--r-- | src/lj_snap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c index 0cf12243..dd123692 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c | |||
@@ -464,8 +464,7 @@ void lj_snap_replay(jit_State *J, GCtrace *T) | |||
464 | J->baseslot = s+1; | 464 | J->baseslot = s+1; |
465 | } | 465 | } |
466 | if (pass23) { | 466 | if (pass23) { |
467 | IRIns *irlast = &T->ir[(snap+1)->ref]; | 467 | IRIns *irlast = &T->ir[snap->ref]; |
468 | lua_assert(J->exitno+1 < T->nsnap); | ||
469 | pass23 = 0; | 468 | pass23 = 0; |
470 | /* Emit dependent PVALs. */ | 469 | /* Emit dependent PVALs. */ |
471 | for (n = 0; n < nent; n++) { | 470 | for (n = 0; n < nent; n++) { |