Skip to content
Merged
Prev Previous commit
Next Next commit
Also fix prev_instr when deoptimizing
  • Loading branch information
gvanrossum committed Jul 1, 2023
commit f6c9d52219fe50741047d16ab4fb146a7af67567
1 change: 1 addition & 0 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -2886,6 +2886,7 @@ _PyUopExecute(_PyExecutorObject *executor, _PyInterpreterFrame *frame, PyObject
fprintf(stderr, "DEOPT: [Opcode %d, operand %" PRIu64 "]\n", opcode, operand);
}
#endif
frame->prev_instr--; // Back up to just before destination
_PyFrame_SetStackPointer(frame, stack_pointer);
Py_DECREF(self);
return frame;
Expand Down