[GSB] Eliminate an unnecessary archetype-anchor computation.

This commit is contained in:
Doug Gregor
2017-10-17 16:45:41 -07:00
parent c346b812f4
commit 3177edc911
2 changed files with 3 additions and 10 deletions

View File

@@ -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);