Merge pull request #1174 from rhapsodyn/patch-1
[mono.git] / mono / metadata / marshal.c
index bb417fe6b40e4cd7e8314ff8c44eb9a47071df4c..4555510e80131af50660e4c699dd6102d9d9514c 100644 (file)
@@ -5026,7 +5026,7 @@ mono_marshal_get_runtime_invoke (MonoMethod *method, gboolean virtual)
                /* Can't share this as we push a string as this */
                need_direct_wrapper = TRUE;
        } else {
-               if (method->dynamic)
+               if (method_is_dynamic (method))
                        callsig = signature_dup (method->klass->image, mono_method_signature (method));
                else
                        callsig = mono_method_signature (method);
@@ -12990,7 +12990,7 @@ mono_marshal_free_dynamic_wrappers (MonoMethod *method)
 {
        MonoImage *image = method->klass->image;
 
-       g_assert (method->dynamic);
+       g_assert (method_is_dynamic (method));
 
        /* This could be called during shutdown */
        if (marshal_mutex_initialized)