mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[GenericSigBuilder] Archetypes no longer make it to this path. NFC
This commit is contained in:
@@ -1916,7 +1916,6 @@ bool GenericSignatureBuilder::addSameTypeRequirementToConcrete(
|
|||||||
// Make sure the concrete type fulfills the requirements on the archetype.
|
// Make sure the concrete type fulfills the requirements on the archetype.
|
||||||
// FIXME: Move later...
|
// FIXME: Move later...
|
||||||
DenseMap<ProtocolDecl *, ProtocolConformanceRef> conformances;
|
DenseMap<ProtocolDecl *, ProtocolConformanceRef> conformances;
|
||||||
if (!Concrete->is<ArchetypeType>()) {
|
|
||||||
CanType depTy = rep->getDependentType({ }, /*allowUnresolved=*/true)
|
CanType depTy = rep->getDependentType({ }, /*allowUnresolved=*/true)
|
||||||
->getCanonicalType();
|
->getCanonicalType();
|
||||||
for (auto &conforms : rep->getConformsTo()) {
|
for (auto &conforms : rep->getConformsTo()) {
|
||||||
@@ -1945,7 +1944,6 @@ bool GenericSignatureBuilder::addSameTypeRequirementToConcrete(
|
|||||||
: nullptr);
|
: nullptr);
|
||||||
updateRequirementSource(conforms.second, concreteSource);
|
updateRequirementSource(conforms.second, concreteSource);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Record the requirement.
|
// Record the requirement.
|
||||||
rep->ConcreteType = Concrete;
|
rep->ConcreteType = Concrete;
|
||||||
|
|||||||
Reference in New Issue
Block a user