[aot] Avoid raising exceptions in the AOT runtime. (#3043)
[mono.git] / mono / mini / driver.c
index aa80289292431607f3c68cb9b344b3e5fa7fea28..7b37da2a67705dae962975399db081541af1392f 100644 (file)
@@ -399,7 +399,7 @@ mini_regression_step (MonoImage *image, int verbose, int *total_run, int *total,
                                if (verbose >= 2)
                                        g_print ("Running '%s' ...\n", method->name);
 #ifdef MONO_USE_AOT_COMPILER
-                               if ((func = (TestMethod)mono_aot_get_method (mono_get_root_domain (), method)))
+                               if ((func = (TestMethod)mono_aot_get_method_checked (mono_get_root_domain (), method, &error)))
                                        ;
                                else
 #endif