diff options
author | Mark Shannon <mark@hotpy.org> | 2024-02-22 14:48:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 14:48:25 +0000 |
commit | b348313e7a48811acacc293ac4b2c8b20b4c631b (patch) | |
tree | 8a1f0fdd03b673ce71bac5b6a3b649694d018b90 /Python/executor_cases.c.h | |
parent | c6a47de70966e6899871245e800a0a9271e25b12 (diff) | |
download | cpython-b348313e7a48811acacc293ac4b2c8b20b4c631b.tar.gz cpython-b348313e7a48811acacc293ac4b2c8b20b4c631b.zip |
GH-115651: Convert `LOAD_MODULE_ATTR` into `LOAD_INLINE_CONST` when the module is itself a constant. (GH-115711)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index 974555cbba9..3054058cf44 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -1856,11 +1856,11 @@ case _CHECK_ATTR_MODULE: { PyObject *owner; owner = stack_pointer[-1]; - uint32_t type_version = (uint32_t)CURRENT_OPERAND(); + uint32_t dict_version = (uint32_t)CURRENT_OPERAND(); if (!PyModule_CheckExact(owner)) goto deoptimize; PyDictObject *dict = (PyDictObject *)((PyModuleObject *)owner)->md_dict; assert(dict != NULL); - if (dict->ma_keys->dk_version != type_version) goto deoptimize; + if (dict->ma_keys->dk_version != dict_version) goto deoptimize; break; } |