File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -305,18 +305,8 @@ PolymorphicConvention::enumerateRequirements(const RequirementCallback &callback
305
305
void PolymorphicConvention::
306
306
enumerateUnfulfilledRequirements (const RequirementCallback &callback) {
307
307
enumerateRequirements ([&](GenericRequirement requirement) {
308
- if (requirement.isWitnessTable ()) {
309
- if (!Fulfillments.getWitnessTable (requirement.getTypeParameter (),
310
- requirement.getProtocol ())) {
311
- callback (requirement);
312
- }
313
- } else {
314
- assert (requirement.isMetadata ());
315
-
316
- if (!Fulfillments.getTypeMetadata (requirement.getTypeParameter ())) {
317
- callback (requirement);
318
- }
319
- }
308
+ if (!Fulfillments.getFulfillment (requirement))
309
+ callback (requirement);
320
310
});
321
311
}
322
312
You can’t perform that action at this time.
0 commit comments