Skip to content

Commit 66a0b78

Browse files
committed
[Sema] Don’t check hasSingleExpressionBody in ConstraintSystem::participatesInInference
It looks like we no longer need this check.
1 parent 655c8f4 commit 66a0b78

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7311,9 +7311,6 @@ bool ConstraintSystem::participatesInInference(ClosureExpr *closure) const {
73117311
if (getAppliedResultBuilderTransform(closure))
73127312
return true;
73137313

7314-
if (closure->hasSingleExpressionBody())
7315-
return true;
7316-
73177314
if (Options.contains(ConstraintSystemFlags::LeaveClosureBodyUnchecked))
73187315
return false;
73197316

0 commit comments

Comments
 (0)