mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Push ArchetypeType's API down to subclasses.
And clean up code that conditionally works only with certain kinds of archetype along the way.
This commit is contained in:
@@ -1904,7 +1904,7 @@ IsaEncoding irgen::getIsaEncodingForType(IRGenModule &IGM,
|
||||
|
||||
// Existentials use the encoding of the enclosed dynamic type.
|
||||
if (type->isAnyExistentialType()) {
|
||||
return getIsaEncodingForType(IGM, ArchetypeType::getOpened(type));
|
||||
return getIsaEncodingForType(IGM, OpenedArchetypeType::getAny(type));
|
||||
}
|
||||
|
||||
if (auto archetype = dyn_cast<ArchetypeType>(type)) {
|
||||
|
||||
Reference in New Issue
Block a user