File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -10696,16 +10696,10 @@ ConstraintSystem::simplifyApplicableFnConstraint(
10696
10696
auto &ctx = getASTContext ();
10697
10697
auto numTrailing = argumentList->getNumTrailingClosures ();
10698
10698
10699
- SmallVector<Argument, 4 > newArguments;
10700
- SmallVector<Argument, 4 > trailingClosures;
10701
-
10702
- for (unsigned i = 0 , n = argumentList->size (); i != n; ++i) {
10703
- if (argumentList->isTrailingClosureIndex (i)) {
10704
- trailingClosures.push_back (argumentList->get (i));
10705
- } else {
10706
- newArguments.push_back (argumentList->get (i));
10707
- }
10708
- }
10699
+ SmallVector<Argument, 4 > newArguments (
10700
+ argumentList->getNonTrailingArgs ());
10701
+ SmallVector<Argument, 4 > trailingClosures (
10702
+ argumentList->getTrailingClosures ());
10709
10703
10710
10704
// Original argument list with all the trailing closures removed.
10711
10705
auto *newArgumentList = ArgumentList::createParsed (
You can’t perform that action at this time.
0 commit comments