diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-12-23 14:42:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 14:42:24 (GMT) |
commit | 2659036c757a11235c4abd21f02c3a548a344fe7 (patch) | |
tree | e63f62f7e179fd9ba9e028f2b8ceab123c87035d | |
parent | 84bc6a4f25fcf467813ee12b74118f7b1b54e285 (diff) | |
download | cpython-2659036c757a11235c4abd21f02c3a548a344fe7.zip cpython-2659036c757a11235c4abd21f02c3a548a344fe7.tar.gz cpython-2659036c757a11235c4abd21f02c3a548a344fe7.tar.bz2 |
GH-100459: fix copy-paste errors in specialization stats (GH-100460)
-rw-r--r-- | Python/specialize.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index 69a7bf9..d9af7b7 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -860,7 +860,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name) // We *might* not really need this check, but we inherited it from // PyObject_GenericSetAttr and friends... and this way we still do the // right thing if someone forgets to call PyType_Ready(type): - SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_OTHER); + SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_OTHER); goto fail; } if (PyModule_CheckExact(owner)) { @@ -915,16 +915,16 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name) SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_OVERRIDDEN); goto fail; case BUILTIN_CLASSMETHOD: - SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_BUILTIN_CLASS_METHOD_OBJ); + SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_BUILTIN_CLASS_METHOD_OBJ); goto fail; case PYTHON_CLASSMETHOD: - SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_CLASS_METHOD_OBJ); + SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_CLASS_METHOD_OBJ); goto fail; case NON_OVERRIDING: - SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_DESCRIPTOR); + SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_DESCRIPTOR); goto fail; case NON_DESCRIPTOR: - SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_SIMPLE); + SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_SIMPLE); goto fail; case ABSENT: if (specialize_dict_access(owner, instr, type, kind, name, STORE_ATTR, |