Skip to content

Commit 2c1297e

Browse files
committed
AST: Simplify GenericSignatureImpl::isRequirementSatisfied()
1 parent b0b5b2a commit 2c1297e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/AST/GenericSignature.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,7 @@ bool GenericSignatureImpl::isRequirementSatisfied(
412412
auto *genericEnv = getGenericEnvironment();
413413

414414
requirement = requirement.subst(
415-
[&](SubstitutableType *type) -> Type {
416-
if (auto *paramType = type->getAs<GenericTypeParamType>())
417-
return genericEnv->mapTypeIntoContext(paramType);
418-
419-
return type;
420-
},
415+
QueryInterfaceTypeSubstitutions{genericEnv},
421416
LookUpConformanceInModule());
422417
}
423418

0 commit comments

Comments
 (0)