File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ matchCallArguments(SmallVectorImpl<AnyFunctionType::Param> &args,
258
258
actualArgNames.resize (numArgs);
259
259
260
260
// Figure out previous argument names from the parameter bindings.
261
- for (unsigned i = 0 ; i != numParams; ++i ) {
261
+ for (auto i : indices (params) ) {
262
262
const auto ¶m = params[i];
263
263
bool firstArg = true ;
264
264
@@ -526,7 +526,7 @@ matchCallArguments(SmallVectorImpl<AnyFunctionType::Param> &args,
526
526
// Find the closest matching unfulfilled named parameter.
527
527
unsigned bestScore = 0 ;
528
528
unsigned best = 0 ;
529
- for (unsigned i = 0 , n = unfulfilledNamedParams. size (); i != n; ++i ) {
529
+ for (auto i : indices (unfulfilledNamedParams) ) {
530
530
unsigned param = unfulfilledNamedParams[i];
531
531
auto paramName = params[param].getLabel ();
532
532
@@ -583,7 +583,7 @@ matchCallArguments(SmallVectorImpl<AnyFunctionType::Param> &args,
583
583
// labels don't line up, if so let's try to claim arguments
584
584
// with incorrect labels, and let OoO/re-labeling logic diagnose that.
585
585
if (numArgs == numParams && numClaimedArgs != numArgs) {
586
- for (unsigned i = 0 ; i < numArgs; ++i ) {
586
+ for (auto i : indices (args) ) {
587
587
if (claimedArgs[i] || !parameterBindings[i].empty ())
588
588
continue ;
589
589
You can’t perform that action at this time.
0 commit comments