From cb22365be78438c6e58a5354a36aeb9d44168a75 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Mon, 11 Sep 2023 13:26:16 +0100 Subject: [PATCH] Python/optimizer.c --- Python/optimizer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index a61b6662472c40..51409f73fa26d1 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -185,8 +185,9 @@ _PyOptimizer_BackEdge(_PyInterpreterFrame *frame, _Py_CODEUNIT *src, _Py_CODEUNI Py_DECREF(executor); goto jump_to_destination; } - insert_executor(code, src, index, executor); assert(frame->prev_instr == src); + assert(frame->instr_ptr == src); + insert_executor(code, src, index, executor); frame->prev_instr = dest - 1; frame->instr_ptr = dest; return executor->execute(executor, frame, stack_pointer);