diff options
author | Mark Shannon <mark@hotpy.org> | 2024-08-16 17:11:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-16 17:11:24 +0100 |
commit | c13e7d98fb8581014a225b900b1b88ccbfc28097 (patch) | |
tree | 2b27e6bbae922f421fbbae0fb761492031752b8a /Python/optimizer.c | |
parent | e2f2dc708eae89f41e328501b5ea7c97b8e39907 (diff) | |
download | cpython-c13e7d98fb8581014a225b900b1b88ccbfc28097.tar.gz cpython-c13e7d98fb8581014a225b900b1b88ccbfc28097.zip |
GH-118093: Specialize `CALL_KW` (GH-123006)
Diffstat (limited to 'Python/optimizer.c')
-rw-r--r-- | Python/optimizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/optimizer.c b/Python/optimizer.c index dbd5467f0d4..9198e410627 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -807,7 +807,7 @@ translate_bytecode_to_trace( ADD_TO_TRACE(_DYNAMIC_EXIT, 0, 0, 0); goto done; } - assert(_PyOpcode_Deopt[opcode] == CALL); + assert(_PyOpcode_Deopt[opcode] == CALL || _PyOpcode_Deopt[opcode] == CALL_KW); int func_version_offset = offsetof(_PyCallCache, func_version)/sizeof(_Py_CODEUNIT) // Add one to account for the actual opcode/oparg pair: |