@@ -719,8 +719,7 @@ matchCallArguments(ArrayRef<AnyFunctionType::Param> args,
719
719
static std::tuple<ValueDecl *, bool , ArrayRef<Identifier>, bool ,
720
720
ConstraintLocator *>
721
721
getCalleeDeclAndArgs (ConstraintSystem &cs,
722
- ConstraintLocatorBuilder callBuilder,
723
- SmallVectorImpl<Identifier> &argLabelsScratch) {
722
+ ConstraintLocatorBuilder callBuilder) {
724
723
ArrayRef<Identifier> argLabels;
725
724
bool hasTrailingClosure = false ;
726
725
ConstraintLocator *targetLocator = nullptr ;
@@ -925,12 +924,11 @@ ConstraintSystem::TypeMatchResult constraints::matchCallArguments(
925
924
ValueDecl *callee;
926
925
bool hasAppliedSelf;
927
926
ArrayRef<Identifier> argLabels;
928
- SmallVector<Identifier, 2 > argLabelsScratch;
929
927
bool hasTrailingClosure = false ;
930
928
ConstraintLocator *calleeLocator;
931
929
std::tie (callee, hasAppliedSelf, argLabels, hasTrailingClosure,
932
930
calleeLocator) =
933
- getCalleeDeclAndArgs (cs, locator, argLabelsScratch );
931
+ getCalleeDeclAndArgs (cs, locator);
934
932
935
933
ParameterListInfo paramInfo (params, callee, hasAppliedSelf);
936
934
0 commit comments