mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make ArchetypeType::NestedType its own proper type
with more explicit/semantic conversions in and out. Using a PointerUnion with overlapping pointer types is both error-prone and pretty close to illegible. Swift SVN r24707
This commit is contained in:
@@ -2337,9 +2337,8 @@ void Serializer::writeType(Type ty) {
|
||||
SmallVector<bool, 4> areArchetypes;
|
||||
for (auto next : archetypeTy->getNestedTypes()) {
|
||||
nestedTypeNames.push_back(addIdentifierRef(next.first));
|
||||
nestedTypes.push_back(
|
||||
addTypeRef(ArchetypeType::getNestedTypeValue(next.second)));
|
||||
areArchetypes.push_back(next.second.is<ArchetypeType*>());
|
||||
nestedTypes.push_back(addTypeRef(next.second.getValue()));
|
||||
areArchetypes.push_back(!next.second.isConcreteType());
|
||||
}
|
||||
|
||||
abbrCode = DeclTypeAbbrCodes[ArchetypeNestedTypeNamesLayout::Code];
|
||||
|
||||
Reference in New Issue
Block a user