summaryrefslogtreecommitdiffstats
path: root/Python/frame.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-10-26 13:43:10 (GMT)
committerGitHub <noreply@github.com>2023-10-26 13:43:10 (GMT)
commit67a91f78e4395148afcc33e5cd6f3f0a9623e63a (patch)
tree2d5bf1f7ead447934ce68aa42279708a7c32fa28 /Python/frame.c
parent573eff3e2ec36b5ec77c3601592a652e524abe21 (diff)
downloadcpython-67a91f78e4395148afcc33e5cd6f3f0a9623e63a.zip
cpython-67a91f78e4395148afcc33e5cd6f3f0a9623e63a.tar.gz
cpython-67a91f78e4395148afcc33e5cd6f3f0a9623e63a.tar.bz2
gh-109094: replace frame->prev_instr by frame->instr_ptr (#109095)
Diffstat (limited to 'Python/frame.c')
-rw-r--r--Python/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/frame.c b/Python/frame.c
index b483903..2865b2e 100644
--- a/Python/frame.c
+++ b/Python/frame.c
@@ -90,7 +90,7 @@ take_ownership(PyFrameObject *f, _PyInterpreterFrame *frame)
// This may be a newly-created generator or coroutine frame. Since it's
// dead anyways, just pretend that the first RESUME ran:
PyCodeObject *code = _PyFrame_GetCode(frame);
- frame->prev_instr = _PyCode_CODE(code) + code->_co_firsttraceable;
+ frame->instr_ptr = _PyCode_CODE(code) + code->_co_firsttraceable + 1;
}
assert(!_PyFrame_IsIncomplete(frame));
assert(f->f_back == NULL);