mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -1637,7 +1637,7 @@ OwnedAddress irgen::emitBoxedExistentialContainerAllocation(IRGenFunction &IGF,
|
||||
auto box = IGF.Builder.CreateExtractValue(result, 0);
|
||||
auto addr = IGF.Builder.CreateExtractValue(result, 1);
|
||||
|
||||
auto archetype = ArchetypeType::getOpened(destType.getASTType());
|
||||
auto archetype = OpenedArchetypeType::get(destType.getASTType());
|
||||
auto &srcTI = IGF.getTypeInfoForUnlowered(AbstractionPattern(archetype),
|
||||
formalSrcType);
|
||||
addr = IGF.Builder.CreateBitCast(addr,
|
||||
|
||||
Reference in New Issue
Block a user