mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[GSB] Eliminate an unnecessary archetype-anchor computation.
This commit is contained in:
@@ -1002,8 +1002,8 @@ ConformanceAccessPath GenericSignature::getConformanceAccessPath(
|
||||
// Canonicalize the root type.
|
||||
auto source = getBestRequirementSource(conforms->second);
|
||||
auto subjectPA = source->getRootPotentialArchetype();
|
||||
subjectPA = subjectPA->getArchetypeAnchor(*subjectPA->getBuilder());
|
||||
Type rootType = subjectPA->getDependentType(getGenericParams());
|
||||
Type rootType =
|
||||
subjectPA->getOrCreateEquivalenceClass()->getAnchor(getGenericParams());
|
||||
|
||||
// Build the path.
|
||||
buildPath(getRequirements(), source, protocol, rootType, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user