[Sema] Don’t check hasSingleExpressionBody in ConstraintSystem::participatesInInference

It looks like we no longer need this check.
This commit is contained in:
Alex Hoppen
2023-09-08 08:29:28 -07:00
parent 655c8f4865
commit 66a0b78dae

View File

@@ -7311,9 +7311,6 @@ bool ConstraintSystem::participatesInInference(ClosureExpr *closure) const {
if (getAppliedResultBuilderTransform(closure))
return true;
if (closure->hasSingleExpressionBody())
return true;
if (Options.contains(ConstraintSystemFlags::LeaveClosureBodyUnchecked))
return false;