From 4adbf5f71369693f12f34caceec5ecfebb88aab5 Mon Sep 17 00:00:00 2001 From: Laurence Tratt Date: Wed, 18 Dec 2024 15:44:45 +0000 Subject: [PATCH] Revert "Reapply "Ensure backwards jumps get a yk_location."" This reverts commit c7bf29f4258a53819aedf83676339231f2776f15. --- src/lvm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lvm.c b/src/lvm.c index 3c99647..ea28b66 100644 --- a/src/lvm.c +++ b/src/lvm.c @@ -1222,11 +1222,8 @@ void luaV_execute (lua_State *L, CallInfo *ci) { vmfetch(); #ifdef USE_YK YkLocation *ykloc = NULL; - if ((GET_OPCODE(i) == OP_FORLOOP) || - (GET_OPCODE(i) == OP_TFORLOOP) || - ((GET_OPCODE(i) == OP_JMP) && (GETARG_sJ(i) < 0))) { + if (GET_OPCODE(i) == OP_FORLOOP || GET_OPCODE(i) == OP_TFORLOOP) ykloc = &cl->p->yklocs[pcRel(pc, cl->p)]; - } yk_mt_control_point(G(L)->yk_mt, ykloc); #endif #if 0