[mono] Avoid printing out LLVM failed messages when verbosity level is 0. (#54885)
authorZoltan Varga <vargaz@gmail.com>
Tue, 29 Jun 2021 14:29:15 +0000 (10:29 -0400)
committerGitHub <noreply@github.com>
Tue, 29 Jun 2021 14:29:15 +0000 (10:29 -0400)
src/mono/mono/mini/mini.c

index d03efca..ae87e44 100644 (file)
@@ -3327,7 +3327,7 @@ mini_method_compile (MonoMethod *method, guint32 opts, JitFlags flags, int parts
                if (COMPILE_LLVM (cfg)) {
                        mono_llvm_check_method_supported (cfg);
                        if (cfg->disable_llvm) {
-                               if (cfg->verbose_level >= (cfg->llvm_only ? 0 : 1)) {
+                               if (cfg->verbose_level > 0) {
                                        //nm = mono_method_full_name (cfg->method, TRUE);
                                        printf ("LLVM failed for '%s.%s': %s\n", m_class_get_name (method->klass), method->name, cfg->exception_message);
                                        //g_free (nm);