Skip to content

Commit

Permalink
use instr_ptr in LOAD_IP
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Sep 8, 2023
1 parent 1ceeba1 commit 371fa66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Python/ceval_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,10 @@ static inline void _Py_LeaveRecursiveCallPy(PyThreadState *tstate) {

#if TIER_ONE

#define LOAD_IP() \
do { next_instr = frame->prev_instr+1; } while (0)
#define LOAD_IP() do { \
assert(frame->prev_instr + 1 == frame->instr_ptr); \
next_instr = frame->instr_ptr; \
} while (0)

#define STORE_SP() \
_PyFrame_SetStackPointer(frame, stack_pointer)
Expand Down

0 comments on commit 371fa66

Please sign in to comment.