mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix (de-)serialization of opaque result types for structural opaque types.
Serialize the ordinal value of OpaqueTypeArchetypeTypes and properly set the interface type of OpaqueTypeDecl on deserialization.
This commit is contained in:
@@ -4485,7 +4485,8 @@ public:
|
||||
auto substMapID = S.addSubstitutionMapRef(archetypeTy->getSubstitutions());
|
||||
unsigned abbrCode = S.DeclTypeAbbrCodes[OpaqueArchetypeTypeLayout::Code];
|
||||
OpaqueArchetypeTypeLayout::emitRecord(S.Out, S.ScratchRecord, abbrCode,
|
||||
declID, substMapID);
|
||||
declID, archetypeTy->getOrdinal(),
|
||||
substMapID);
|
||||
}
|
||||
|
||||
void visitNestedArchetypeType(const NestedArchetypeType *archetypeTy) {
|
||||
|
||||
Reference in New Issue
Block a user