diff --git a/src/mono/mono/metadata/object.c b/src/mono/mono/metadata/object.c index 5e15a0f74b9c9..4e601cca8c5e7 100644 --- a/src/mono/mono/metadata/object.c +++ b/src/mono/mono/metadata/object.c @@ -1525,10 +1525,8 @@ build_imt_slots (MonoClass *klass, MonoVTable *vt, gpointer* imt, GSList *extra_ continue; } - if (m_method_is_static (method)) { - vt_slot ++; + if (m_method_is_static (method)) continue; - } if (method->flags & METHOD_ATTRIBUTE_VIRTUAL) { add_imt_builder_entry (imt_builder, method, &imt_collisions_bitmap, vt_slot, slot_num);