Skip to content

Commit 6a54c36

Browse files
committed
Lift the restriction to archetypes and consider all interesting types (checked earlier)
1 parent e2a8300 commit 6a54c36

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/IRGen/Fulfillment.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,12 @@ bool FulfillmentMap::searchTypeMetadata(IRGenModule &IGM, CanType type,
125125
}
126126

127127
// If the type is an archetype consider its super class bound.
128-
if (isa<ArchetypeType>(type))
129-
if (metadataState == MetadataState::Complete) {
130-
if (auto superclassTy = keys.getSuperclassBound(type)) {
131-
hadFulfillment |= searchNominalTypeMetadata(
132-
IGM, superclassTy, metadataState, source, std::move(path), keys);
133-
}
128+
if (metadataState == MetadataState::Complete) {
129+
if (auto superclassTy = keys.getSuperclassBound(type)) {
130+
hadFulfillment |= searchNominalTypeMetadata(
131+
IGM, superclassTy, metadataState, source, std::move(path), keys);
134132
}
133+
}
135134

136135
// Add the fulfillment.
137136
hadFulfillment |= addFulfillment({type, nullptr},

0 commit comments

Comments
 (0)