From 1ceeba1dc47c9948ef0062812eed62aa1d6d442d Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Fri, 8 Sep 2023 12:47:30 +0100 Subject: [PATCH] use instr_ptr in _PyFrame_IsIncomplete --- Include/internal/pycore_frame.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/internal/pycore_frame.h b/Include/internal/pycore_frame.h index b7a2dbb54cc5c5..ca21e10152a73f 100644 --- a/Include/internal/pycore_frame.h +++ b/Include/internal/pycore_frame.h @@ -188,7 +188,7 @@ _PyFrame_IsIncomplete(_PyInterpreterFrame *frame) return true; } return frame->owner != FRAME_OWNED_BY_GENERATOR && - frame->prev_instr < _PyCode_CODE(_PyFrame_GetCode(frame)) + _PyFrame_GetCode(frame)->_co_firsttraceable; + frame->instr_ptr < _PyCode_CODE(_PyFrame_GetCode(frame)) + _PyFrame_GetCode(frame)->_co_firsttraceable; } static inline _PyInterpreterFrame *