diff --git a/src/mono/mono/mini/llvm-jit.cpp b/src/mono/mono/mini/llvm-jit.cpp index 17a9eb8446356..cf2c66d36fb0e 100644 --- a/src/mono/mono/mini/llvm-jit.cpp +++ b/src/mono/mono/mini/llvm-jit.cpp @@ -299,7 +299,8 @@ struct MonoLLVMJIT { auto k = add_module (std::unique_ptr(module)); auto bodysym = compile_layer.findSymbolIn (k, mangle (func), false); auto bodyaddr = bodysym.getAddress (); - assert (bodyaddr); + if (!bodyaddr) + g_assert_not_reached(); for (int i = 0; i < nvars; ++i) { auto var = unwrap (callee_vars[i]); auto sym = compile_layer.findSymbolIn (k, mangle (var->getName ()), true); @@ -404,7 +405,8 @@ class MonoLLVMJIT { auto ModuleHandle = addModule (F, m); auto BodySym = CompileLayer.findSymbolIn(ModuleHandle, mangle (F), false); auto BodyAddr = BodySym.getAddress(); - assert (BodyAddr); + if (!BodyAddr) + g_assert_not_reached (); for (int i = 0; i < nvars; ++i) { GlobalVariable *var = unwrap(callee_vars [i]);