Merge pull request #2802 from BrzVlad/feature-evacuation-opt2
[mono.git] / mono / mini / method-to-ir.c
index aed8309edf6ef795d06aca1840712df51809916c..587d08254e5f2143e2555a1d3bc579ddb2bb42e5 100644 (file)
@@ -7261,7 +7261,6 @@ inline_method (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *fsig,
                if (cfg->verbose_level > 2)
                        printf ("INLINE ABORTED %s (cost %d)\n", mono_method_full_name (cmethod, TRUE), costs);
                cfg->exception_type = MONO_EXCEPTION_NONE;
-               mono_loader_clear_error ();
 
                /* This gets rid of the newly added bblocks */
                cfg->cbb = prev_cbb;