diff options
author | Manish Godse <61718172+mangod9@users.noreply.github.com> | 2021-06-05 10:25:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-05 10:25:40 +0300 |
commit | 00c4a492a5d34547457936be2a56f894ce5eb241 (patch) | |
tree | 07b10d84b9556758843fdbeb4da5d3a7a480f397 /src/coreclr/tools | |
parent | f70b5b7aef21a70478e9b86dba7d996a57a9add9 (diff) |
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 <jkotas@microsoft.com>
Diffstat (limited to 'src/coreclr/tools')
-rw-r--r-- | src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs b/src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs index 64ba412f6af..458b4c6a6b6 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( |