From: Zoltan Varga Date: Tue, 9 May 2017 19:36:22 +0000 (-0400) Subject: [jit] Allow inlining of methods with the AggressiveInlining flag even if they make... X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=3edf9da975b141a4eac13e4ea606d4a67da86641;p=mono.git [jit] Allow inlining of methods with the AggressiveInlining flag even if they make calls. (#4811) --- diff --git a/mono/mini/method-to-ir.c b/mono/mini/method-to-ir.c index d3dae70204b..dfd95706027 100644 --- a/mono/mini/method-to-ir.c +++ b/mono/mini/method-to-ir.c @@ -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);