summaryrefslogtreecommitdiffstats
path: root/Python/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/frame.c')
-rw-r--r--Python/frame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/frame.c b/Python/frame.c
index 35e6c2d..9a865e5 100644
--- a/Python/frame.c
+++ b/Python/frame.c
@@ -63,7 +63,8 @@ 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->instr_ptr = _PyCode_CODE(code) + code->_co_firsttraceable + 1;
+ frame->instr_ptr =
+ _PyFrame_GetBytecode(frame) + code->_co_firsttraceable + 1;
}
assert(!_PyFrame_IsIncomplete(frame));
assert(f->f_back == NULL);