[metadata prespecialization] Direct refs to enums.

When a specialized usage of a generic enum occurs in the same module
where the enum was defined, directly reference the prespecialized
metadata.

rdar://problem/56994321
This commit is contained in:
Nate Chandler
2019-12-14 06:16:40 -08:00
parent 949029a788
commit 40e17d9c6f
35 changed files with 5698 additions and 25 deletions

View File

@@ -684,11 +684,6 @@ bool irgen::isNominalGenericContextTypeMetadataAccessTrivial(
return false;
}
if (isa<EnumType>(type) || isa<BoundGenericEnumType>(type)) {
// TODO: Support enums.
return false;
}
if (isa<ClassType>(type) || isa<BoundGenericClassType>(type)) {
// TODO: Support classes.
return false;