mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user