#ifdef Py_STATS
static int
-store_subscr_fail_kind(PyObject *container_type)
+store_subscr_fail_kind(PyObject *container, PyObject *sub)
{
+ PyTypeObject *container_type = Py_TYPE(container);
PyMappingMethods *as_mapping = container_type->tp_as_mapping;
if (as_mapping && (as_mapping->mp_ass_subscript
== PyDict_Type.tp_as_mapping->mp_ass_subscript)) {
specialize(instr, STORE_SUBSCR_DICT);
return;
}
- SPECIALIZATION_FAIL(STORE_SUBSCR, store_subscr_fail_kind(container_type));
+ SPECIALIZATION_FAIL(STORE_SUBSCR, store_subscr_fail_kind(container, sub));
unspecialize(instr);
}