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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFadi Hanna <fadim@microsoft.com>2018-07-19 23:16:12 +0300
committerFadi Hanna <fadim@microsoft.com>2018-07-19 23:16:12 +0300
commit692a9ff7baefa14c8c2861fb2392946e4af27a95 (patch)
treeced05c9bcf5eff3ff54b76be6e429a5f1505afb5 /src/ILCompiler.Compiler
parent9bf3b790378510f35bcb039b864348099ad7fb4b (diff)
Fix a reflection bug caused by my previous checkin. Weak reflected types should always be added to the TypeMap if they generated an EEType in the current compilation. My previous aiming at adding weak reflected imported types to the TypeMap table accidently broke that.
[tfs-changeset: 1708032]
Diffstat (limited to 'src/ILCompiler.Compiler')
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/PrecomputedMetadataManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ILCompiler.Compiler/src/Compiler/PrecomputedMetadataManager.cs b/src/ILCompiler.Compiler/src/Compiler/PrecomputedMetadataManager.cs
index 159f6a237..33dcd22cb 100644
--- a/src/ILCompiler.Compiler/src/Compiler/PrecomputedMetadataManager.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/PrecomputedMetadataManager.cs
@@ -708,7 +708,7 @@ namespace ILCompiler
continue;
int token;
- if (loadedMetadata.AllTypeMappings.TryGetValue(definition, out token))
+ if (loadedMetadata.AllTypeMappings.TryGetValue(definition, out token) || loadedMetadata.WeakReflectedTypeMappings.TryGetValue(definition, out token))
{
typeMappings.Add(new MetadataMapping<MetadataType>(definition, token));
}