Skip to content

Commit 71334fd

Browse files
echesakovEgor Chesakov
authored andcommitted
Update condition for CORINFO_FLG_OPAQUE_BLOB in src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs
1 parent 6c0083c commit 71334fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,8 +1986,8 @@ private uint getClassAttribsInternal(TypeDesc type)
19861986
result |= CorInfoFlag.CORINFO_FLG_BYREF_LIKE;
19871987

19881988
// The CLR has more complicated rules around CUSTOMLAYOUT, but this will do.
1989-
if (metadataType.IsExplicitLayout || (metadataType.IsSequentialLayout && metadataType.GetClassLayout().Size != 0) || metadataType.IsWellKnownType(WellKnownType.TypedReference))
1990-
result |= CorInfoFlag.CORINFO_FLG_CUSTOMLAYOUT;
1989+
if (metadataType.IsExplicitLayout || metadataType.IsWellKnownType(WellKnownType.TypedReference))
1990+
result |= CorInfoFlag.CORINFO_FLG_OPAQUE_BLOB;
19911991

19921992
if (metadataType.IsUnsafeValueType)
19931993
result |= CorInfoFlag.CORINFO_FLG_UNSAFE_VALUECLASS;

0 commit comments

Comments
 (0)