diff --git a/src/mono/mono/mini/aot-compiler.c b/src/mono/mono/mini/aot-compiler.c index a3eca9df8987a..71499235f94bf 100644 --- a/src/mono/mono/mini/aot-compiler.c +++ b/src/mono/mono/mini/aot-compiler.c @@ -5010,7 +5010,7 @@ add_full_aot_wrappers (MonoAotCompile *acfg) g_assert (is_ok (error)); /* FIXME don't swallow the error */ sig = mono_method_signature_internal (method); - if (sig->param_count && !m_class_is_byreflike (mono_class_from_mono_type_internal (sig->params [0])) && !m_type_is_byref (sig->params [0])) + if (sig->param_count && !m_class_is_byreflike (mono_class_from_mono_type_internal (sig->params [0])) && !m_type_is_byref (sig->params [0])) { m = mono_marshal_get_delegate_invoke_internal (inst, TRUE, FALSE, NULL); gshared = mini_get_shared_method_full (m, SHARE_MODE_NONE, error); @@ -5027,7 +5027,7 @@ add_full_aot_wrappers (MonoAotCompile *acfg) add_method (acfg, m); sig = mono_method_signature_internal (method); - if (sig->param_count && !m_class_is_byreflike (mono_class_from_mono_type_internal (sig->params [0])) && !m_type_is_byref (sig->params [0])) + if (sig->param_count && !m_class_is_byreflike (mono_class_from_mono_type_internal (sig->params [0])) && !m_type_is_byref (sig->params [0])) { m = mono_marshal_get_delegate_invoke_internal (method, TRUE, FALSE, NULL); add_method (acfg, m); }