Skip to content

Commit 153654c

Browse files
committed
GSB: Perform conditional requirement inference in AbstractGenericSignatureRequest too
There's no way to trigger this from a test right now; it's for some changes @jckarter is working on.
1 parent e400a96 commit 153654c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,8 +2377,7 @@ GenericSignatureBuilder::resolveConcreteConformance(ResolvedType type,
23772377
bool hasExplicitSource = llvm::any_of(
23782378
equivClass->concreteTypeConstraints,
23792379
[](const ConcreteConstraint &constraint) {
2380-
return (!constraint.source->isDerivedRequirement() &&
2381-
constraint.source->getLoc().isValid());
2380+
return !constraint.source->isDerivedRequirement();
23822381
});
23832382

23842383
if (hasExplicitSource) {

0 commit comments

Comments
 (0)