[runtime] switch to checked variant of mono_get_method_constrained.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 9 Dec 2014 22:48:37 +0000 (17:48 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 20 Jan 2015 17:50:48 +0000 (12:50 -0500)
mono/mini/method-to-ir.c

index ac3d6db059ca174cf7b79d23da2f14088234eafc..761480efe82fea936d39cba35314716d6ca6ab11 100755 (executable)
@@ -8121,7 +8121,8 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
                                                        if (!mini_is_gsharedvt_klass (cfg, constrained_call))
                                                                g_assert (!cmethod->klass->valuetype);
                                                } else {
-                                                       cmethod = mono_get_method_constrained (image, token, constrained_call, generic_context, &cil_method);
+                                                       cmethod = mono_get_method_constrained_checked (image, token, constrained_call, generic_context, &cil_method, &cfg->error);
+                                                       CHECK_CFG_ERROR;
                                                }
                                        }
                                }