diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 0d7009ac57bd5f..ea5f7f8abed4f6 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -5176,7 +5176,7 @@ PyType_GetModuleState(PyTypeObject *type) /* Get the module of the first superclass where the module has the * given PyModuleDef. */ -static inline PyObject * +static inline Py_ALWAYS_INLINE PyObject * get_module_by_def(PyTypeObject *type, PyModuleDef *def) { assert(PyType_Check(type));