Skip to content

Commit 948ee3c

Browse files
committed
[ConstraintSystem] Remove lambda that returns true since this argument
is defualted in the same way.
1 parent c6c66f6 commit 948ee3c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,10 +1394,7 @@ static bool havePotentialTypesOrLiteralConformances(Type ty,
13941394

13951395
llvm::SetVector<Constraint *> constraints;
13961396
cs.getConstraintGraph().gatherConstraints(
1397-
rep, constraints, ConstraintGraph::GatheringKind::EquivalenceClass,
1398-
[](Constraint *constraint) {
1399-
return true;
1400-
});
1397+
rep, constraints, ConstraintGraph::GatheringKind::EquivalenceClass);
14011398

14021399
for (auto *constraint : constraints) {
14031400
switch (constraint->getKind()) {

0 commit comments

Comments
 (0)