Skip to content

Commit

Permalink
update instr_ptr in _PyOptimizer_BackEdge
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Sep 1, 2023
1 parent e26538b commit 7cc5cac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,11 @@ _PyOptimizer_BackEdge(_PyInterpreterFrame *frame, _Py_CODEUNIT *src, _Py_CODEUNI
insert_executor(code, src, index, executor);
assert(frame->prev_instr == src);
frame->prev_instr = dest - 1;
frame->instr_ptr = dest;
return executor->execute(executor, frame, stack_pointer);
jump_to_destination:
frame->prev_instr = dest - 1;
frame->instr_ptr = dest;
_PyFrame_SetStackPointer(frame, stack_pointer);
return frame;
}
Expand Down

0 comments on commit 7cc5cac

Please sign in to comment.