Merge pull request #2748 from lambdageek/dev/monoerror-mono_value_box
[mono.git] / mono / mini / jit-icalls.c
index b67cb5f1508f03a58db4225668c10980ab0da4c0..38b668e8ae9ec3b0cdacad753bab753be14a9535 100644 (file)
@@ -1322,7 +1322,7 @@ constrained_gsharedvt_call_setup (gpointer mp, MonoMethod *cmethod, MonoClass *k
                /*
                 * Calling a non-vtype method with a vtype receiver, has to box.
                 */
-               *this_arg = mono_value_box (mono_domain_get (), klass, mp);
+               *this_arg = mono_value_box_checked (mono_domain_get (), klass, mp, error);
        else if (klass->valuetype)
                /*
                 * Calling a vtype method with a vtype receiver