@@ -238,7 +238,6 @@ matchCallArguments(SmallVectorImpl<AnyFunctionType::Param> &args,
238238 // Keep track of which arguments we have claimed from the argument tuple.
239239 unsigned numArgs = args.size ();
240240 SmallVector<bool , 4 > claimedArgs (numArgs, false );
241- SmallVector<Identifier, 4 > actualArgNames;
242241 unsigned numClaimedArgs = 0 ;
243242
244243 // Indicates whether any of the arguments are potentially out-of-order,
@@ -254,28 +253,6 @@ matchCallArguments(SmallVectorImpl<AnyFunctionType::Param> &args,
254253 assert (argNumber != numArgs && " Must have a valid index to claim" );
255254 assert (!claimedArgs[argNumber] && " Argument already claimed" );
256255
257- if (!actualArgNames.empty ()) {
258- // We're recording argument names; record this one.
259- actualArgNames[argNumber] = expectedName;
260- } else if (args[argNumber].getLabel () != expectedName && !ignoreNameClash) {
261- // We have an argument name mismatch. Start recording argument names.
262- actualArgNames.resize (numArgs);
263-
264- // Figure out previous argument names from the parameter bindings.
265- for (auto i : indices (params)) {
266- const auto ¶m = params[i];
267- bool firstArg = true ;
268-
269- for (auto argIdx : parameterBindings[i]) {
270- actualArgNames[argIdx] = firstArg ? param.getLabel () : Identifier ();
271- firstArg = false ;
272- }
273- }
274-
275- // Record this argument name.
276- actualArgNames[argNumber] = expectedName;
277- }
278-
279256 claimedArgs[argNumber] = true ;
280257 ++numClaimedArgs;
281258 return argNumber;
0 commit comments