Skip to content

Commit 81f1574

Browse files
committed
[Runtime] Always cache conformance results based on the type metadata.
1 parent a8c94a3 commit 81f1574

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/runtime/ProtocolConformance.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,7 @@ swift::swift_conformsToProtocol(const Metadata * const type,
592592
case ConformanceFlags::ConformanceKind::WitnessTable:
593593
// If the record provides a nondependent witness table for all
594594
// instances of a generic type, cache it for the generic pattern.
595-
C.cacheSuccess(type->getTypeContextDescriptor(), protocol,
596-
descriptor.getStaticWitnessTable());
595+
C.cacheSuccess(type, protocol, descriptor.getStaticWitnessTable());
597596
return;
598597

599598
case ConformanceFlags::ConformanceKind::WitnessTableAccessor:

0 commit comments

Comments
 (0)