mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Add slot for substitutions for generic witnesses.
If a protocol requirement is satisfied by a generic method, we'll need to save the substitutions necessary to call that method from the witness thunk. This patch adds the spot in the ProtocolConformance::Mapping to save the substitutions; for now, always leave it empty and update the code for the type change. Swift SVN r6399
This commit is contained in:
@@ -695,8 +695,9 @@ Serializer::writeConformances(ArrayRef<ProtocolDecl *> protocols,
|
||||
|
||||
SmallVector<DeclID, 16> data;
|
||||
for (auto valueMapping : conf->Mapping) {
|
||||
// FIXME: Serialize witness substitutions.
|
||||
data.push_back(addDeclRef(valueMapping.first));
|
||||
data.push_back(addDeclRef(valueMapping.second));
|
||||
data.push_back(addDeclRef(valueMapping.second.Decl));
|
||||
}
|
||||
for (auto typeMapping : conf->TypeMapping) {
|
||||
data.push_back(addTypeRef(typeMapping.first));
|
||||
|
||||
Reference in New Issue
Block a user