[mono] Fix build error due to undeclared identifier 'llvm' (#84473)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 7 Apr 2023 14:04:00 +0000 (16:04 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2023 14:04:00 +0000 (10:04 -0400)
`llvm` is only declared when ENABLE_LLVM is defined.

src/mono/mono/mini/mini.c

index 0c68db6c01c9ef2992ce1edf1abd406e8366fbd5..497ed8365eca6c7845af4a4ad7a90967c44daf42 100644 (file)
@@ -3138,7 +3138,9 @@ mini_method_compile (MonoMethod *method, guint32 opts, JitFlags flags, int parts
        opts |= MONO_OPT_FLOAT32;
 #else
        opts &= ~MONO_OPT_FLOAT32;
+#ifdef ENABLE_LLVM
        g_assert (!llvm);
+#endif
 #endif
 
  restart_compile: