diff options
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 0397d96e3f6..bf9d2a316ce 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -4096,8 +4096,9 @@ dummy_func( null = NULL; } - tier2 op(_CHECK_FUNCTION, (func/4 -- )) { - DEOPT_IF(frame->f_funcobj != func); + tier2 op(_CHECK_FUNCTION, (func_version/2 -- )) { + assert(PyFunction_Check(frame->f_funcobj)); + DEOPT_IF(((PyFunctionObject *)frame->f_funcobj)->func_version != func_version); } /* Internal -- for testing executors */ |