diff options
author | Eugene Rozenfeld <erozen@microsoft.com> | 2017-03-16 01:51:05 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-03-16 11:23:37 +0300 |
commit | 778f5d34c5ac9a4183748f7411a4acd6cb73207f (patch) | |
tree | 958fb0449b651acfbe9f110cbad81452965489ac /linker | |
parent | 2c0ac1295fd7a0fdecb83d133324a43ac8f928fa (diff) |
Fix ProcessInteropMethod.
My PR https://github.com/mono/linker/pull/27 yesterday
had a bug that resulted in default constructors of by-ref interop method
parameter types not getting marked. This change fixes the bug.
Diffstat (limited to 'linker')
-rw-r--r-- | linker/Mono.Linker.Steps/MarkStep.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/Mono.Linker.Steps/MarkStep.cs b/linker/Mono.Linker.Steps/MarkStep.cs index 201d2e618..1f4308aad 100644 --- a/linker/Mono.Linker.Steps/MarkStep.cs +++ b/linker/Mono.Linker.Steps/MarkStep.cs @@ -1100,7 +1100,7 @@ namespace Mono.Linker.Steps { TypeDefinition paramTypeDefinition = ResolveTypeDefinition (paramTypeReference); if (paramTypeDefinition != null) { MarkFields (paramTypeDefinition, includeStaticFields); - if (paramTypeReference.IsByReference) { + if (pd.ParameterType.IsByReference) { MarkDefaultConstructor (paramTypeDefinition); } } |