diff --git a/src/mono/mono/mini/aot-runtime.c b/src/mono/mono/mini/aot-runtime.c index e21e2636888d6..cb502f8a0ee39 100644 --- a/src/mono/mono/mini/aot-runtime.c +++ b/src/mono/mono/mini/aot-runtime.c @@ -4453,6 +4453,11 @@ mono_aot_can_dedup (MonoMethod *method) /* Handled using linkonce */ return FALSE; #endif + MonoMethodSignature *sig = mono_method_signature_internal (method); + if (sig->ret->has_cmods) { + // FIXME: + return FALSE; + } return TRUE; } default: