Skip to content

Commit 2659036

Browse files
authored
GH-100459: fix copy-paste errors in specialization stats (GH-100460)
1 parent 84bc6a4 commit 2659036

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Python/specialize.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name)
860860
// We *might* not really need this check, but we inherited it from
861861
// PyObject_GenericSetAttr and friends... and this way we still do the
862862
// right thing if someone forgets to call PyType_Ready(type):
863-
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_OTHER);
863+
SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_OTHER);
864864
goto fail;
865865
}
866866
if (PyModule_CheckExact(owner)) {
@@ -915,16 +915,16 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name)
915915
SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_OVERRIDDEN);
916916
goto fail;
917917
case BUILTIN_CLASSMETHOD:
918-
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_BUILTIN_CLASS_METHOD_OBJ);
918+
SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_BUILTIN_CLASS_METHOD_OBJ);
919919
goto fail;
920920
case PYTHON_CLASSMETHOD:
921-
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_CLASS_METHOD_OBJ);
921+
SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_CLASS_METHOD_OBJ);
922922
goto fail;
923923
case NON_OVERRIDING:
924-
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_DESCRIPTOR);
924+
SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_DESCRIPTOR);
925925
goto fail;
926926
case NON_DESCRIPTOR:
927-
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_SIMPLE);
927+
SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_SIMPLE);
928928
goto fail;
929929
case ABSENT:
930930
if (specialize_dict_access(owner, instr, type, kind, name, STORE_ATTR,

0 commit comments

Comments
 (0)