Skip to content

Commit 34e895c

Browse files
committed
remove unnecessary skipClaimedArgs call
1 parent c946548 commit 34e895c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ matchCallArguments(SmallVectorImpl<AnyFunctionType::Param> &args,
400400
// If the argument is itself variadic, we're forwarding varargs
401401
// with a VarargExpansionExpr; don't collect any more arguments.
402402
if (args[*claimed].isVariadic()) {
403-
skipClaimedArgs();
404403
return;
405404
}
406405

@@ -414,14 +413,12 @@ matchCallArguments(SmallVectorImpl<AnyFunctionType::Param> &args,
414413
}
415414

416415
nextArgIdx = currentNextArgIdx;
417-
skipClaimedArgs();
418416
return;
419417
}
420418

421419
// Try to claim an argument for this parameter.
422420
if (auto claimed = claimNextNamed(param.getLabel(), ignoreNameMismatch)) {
423421
parameterBindings[paramIdx].push_back(*claimed);
424-
skipClaimedArgs();
425422
return;
426423
}
427424

@@ -564,7 +561,6 @@ matchCallArguments(SmallVectorImpl<AnyFunctionType::Param> &args,
564561
if (numClaimedArgs != numArgs) {
565562
// Restart at the first argument/parameter.
566563
nextArgIdx = 0;
567-
skipClaimedArgs();
568564
haveUnfulfilledParams = false;
569565
for (paramIdx = 0; paramIdx != numParams; ++paramIdx) {
570566
// Skip fulfilled parameters.

0 commit comments

Comments
 (0)