Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Godse <61718172+mangod9@users.noreply.github.com>2021-06-05 10:25:40 +0300
committerGitHub <noreply@github.com>2021-06-05 10:25:40 +0300
commit00c4a492a5d34547457936be2a56f894ce5eb241 (patch)
tree07b10d84b9556758843fdbeb4da5d3a7a480f397 /src/coreclr/tools
parentf70b5b7aef21a70478e9b86dba7d996a57a9add9 (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.cs3
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(