From: Manish Godse <61718172+mangod9@users.noreply.github.com> Date: Sat, 5 Jun 2021 07:25:40 +0000 (-0700) Subject: Fixing a regression compiling VT arrays (#53760) X-Git-Tag: submit/tizen/20210909.063632~967 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00c4a492a5d34547457936be2a56f894ce5eb241;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fixing a regression compiling VT arrays (#53760) * Fixing a regression compiling VT arrays * Update src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs Co-authored-by: Jan Kotas --- diff --git a/src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs b/src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs index 64ba412..458b4c6 100644 --- a/src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs +++ b/src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs @@ -450,6 +450,9 @@ namespace Internal.TypeSystem.Interop { case NativeTypeKind.Array: { + if (isField) + return MarshallerKind.Invalid; + var arrayType = (ArrayType)type; elementMarshallerKind = GetArrayElementMarshallerKind(