* marshal.c (emit_struct_conv): added an assertion for EXPLICIT_LAYOUT
svn path=/trunk/mono/; revision=10339
2003-01-10 Dietmar Maurer <dietmar@ximian.com>
+ * marshal.c (emit_struct_conv): added an assertion for EXPLICIT_LAYOUT
+
* loader.c (mono_method_get_marshal_info): bug fix
* marshal.c (mono_marshal_get_ptr_to_struct): don't convert
info = mono_marshal_load_type_info (klass);
+ if ((klass->flags & TYPE_ATTRIBUTE_LAYOUT_MASK) == TYPE_ATTRIBUTE_EXPLICIT_LAYOUT) {
+ /* we should simply emit a BLKCOPY in this case */
+ g_assert_not_reached ();
+ }
+
for (i = 0; i < info->num_fields; i++) {
MonoMarshalNative ntype;
MonoMarshalConv conv;