aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Objects/frameobject.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-08-20 16:52:58 +0100
committerGitHub <noreply@github.com>2024-08-20 16:52:58 +0100
commitbb1d30336e83837d4191a016107fd501cd230328 (patch)
treebe948ce7bf459bbd95195bd57262d775dc7efa76 /Objects/frameobject.c
parentbffed80230f2617de2ee02bd4bdded1024234dab (diff)
downloadcpython-bb1d30336e83837d4191a016107fd501cd230328.tar.gz
cpython-bb1d30336e83837d4191a016107fd501cd230328.zip
GH-118093: Make `CALL_ALLOC_AND_ENTER_INIT` suitable for tier 2. (GH-123140)
* Convert CALL_ALLOC_AND_ENTER_INIT to micro-ops such that tier 2 supports it * Allow inexact arguments for CALL_ALLOC_AND_ENTER_INIT.
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r--Objects/frameobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 621f8996ccb..85c24550d0b 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -1796,8 +1796,7 @@ init_frame(_PyInterpreterFrame *frame, PyFunctionObject *func, PyObject *locals)
{
PyCodeObject *code = (PyCodeObject *)func->func_code;
_PyFrame_Initialize(frame, (PyFunctionObject*)Py_NewRef(func),
- Py_XNewRef(locals), code, 0);
- frame->previous = NULL;
+ Py_XNewRef(locals), code, 0, NULL);
}
PyFrameObject*