Skip to content

Commit cffe8a0

Browse files
authored
Merge pull request #59815 from apple/revert-59106-fix-callAsFunction-perf-5.7
Revert "[5.7][CSSimplify] Disfavor choices that have injected `callAsFunction`"
2 parents 5d86d75 + 2cf7859 commit cffe8a0

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11448,7 +11448,6 @@ ConstraintSystem::simplifyApplicableFnConstraint(
1144811448
FunctionType::get(trailingClosureTypes, callAsFunctionResultTy,
1144911449
FunctionType::ExtInfo());
1145011450

11451-
increaseScore(SK_DisfavoredOverload);
1145211451
// Form an unsolved constraint to apply trailing closures to a
1145311452
// callable type produced by `.init`. This constraint would become
1145411453
// active when `callableType` is bound.

test/Constraints/result_builder_callAsFunction.swift

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)