We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ab33f4 commit 7e71e85Copy full SHA for 7e71e85
mono/metadata/class.c
@@ -1602,7 +1602,7 @@ mono_class_layout_fields (MonoClass *class)
1602
/* corlib is missing [StructLayout] directives in many places */
1603
if (layout == TYPE_ATTRIBUTE_AUTO_LAYOUT) {
1604
if (class->image != mono_defaults.corlib &&
1605
- class->byval_arg.type != MONO_TYPE_VALUETYPE)
+ !class->valuetype)
1606
gc_aware_layout = TRUE;
1607
/* from System.dll, used in metadata/process.h */
1608
if (strcmp (class->name, "ProcessStartInfo") == 0)
0 commit comments