Runtime: Use accessor method to get TargetWitnessTable::Description

This commit is contained in:
Slava Pestov
2020-03-11 19:30:01 -04:00
parent 08c4e737db
commit 4bc1d03283
5 changed files with 13 additions and 8 deletions

View File

@@ -89,7 +89,7 @@ static const Metadata *findHashableBaseTypeImpl(const Metadata *type) {
return nullptr;
}
// By this point, `type` is known to conform to `Hashable`.
const auto *conformance = witnessTable->Description;
const auto *conformance = witnessTable->getDescription();
const Metadata *baseTypeThatConformsToHashable =
findConformingSuperclass(type, conformance);
HashableConformances.getOrInsert(HashableConformanceKey{type},