Skip to content

Commit 8484065

Browse files
committed
IRGen: Replace a mapTypeOutOfContext() call with ArchetypeType::getInterfaceType()
1 parent f2582e1 commit 8484065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenArchetype.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ llvm::Value *irgen::emitArchetypeWitnessTableRef(IRGenFunction &IGF,
208208
// to this conformance from concrete sources.
209209

210210
auto signature = environment->getGenericSignature()->getCanonicalSignature();
211-
auto archetypeDepType = environment->mapTypeOutOfContext(archetype);
211+
auto archetypeDepType = archetype->getInterfaceType();
212212

213213
auto astPath = signature->getConformanceAccessPath(archetypeDepType, protocol,
214214
*IGF.IGM.getSwiftModule());

0 commit comments

Comments
 (0)