[jit] Allow inlining of methods with the AggressiveInlining flag even if they make...
authorZoltan Varga <vargaz@gmail.com>
Tue, 9 May 2017 19:36:22 +0000 (15:36 -0400)
committerGitHub <noreply@github.com>
Tue, 9 May 2017 19:36:22 +0000 (15:36 -0400)
mono/mini/method-to-ir.c

index d3dae70204bde121eaea2870836f2e084f323960..dfd95706027c4271036ab9c10e1de33a3c64700c 100644 (file)
@@ -9371,7 +9371,7 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
                        }
 
                        /* Common call */
-                       if (!(cmethod->iflags & METHOD_IMPL_ATTRIBUTE_AGGRESSIVE_INLINING))
+                       if (!(method->iflags & METHOD_IMPL_ATTRIBUTE_AGGRESSIVE_INLINING) && !(cmethod->iflags & METHOD_IMPL_ATTRIBUTE_AGGRESSIVE_INLINING))
                                INLINE_FAILURE ("call");
                        ins = mono_emit_method_call_full (cfg, cmethod, fsig, tail_call, sp, virtual_ ? sp [0] : NULL,
                                                                                          imt_arg, vtable_arg);