We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bbda52f + d5965d0 commit 23a4d2bCopy full SHA for 23a4d2b
stdlib/public/runtime/AnyHashableSupport.cpp
@@ -98,7 +98,12 @@ findHashableBaseTypeImpl(const Metadata *type) {
98
return nullptr;
99
}
100
// By this point, `type` is known to conform to `Hashable`.
101
+#if SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES
102
+ const auto *conformance = reinterpret_cast<const RelativeWitnessTable*>(
103
+ witnessTable)->getDescription();
104
+#else
105
const auto *conformance = witnessTable->getDescription();
106
+#endif
107
const Metadata *baseTypeThatConformsToHashable =
108
findConformingSuperclass(type, conformance);
109
HashableConformanceKey key{type};
0 commit comments