Skip to content

Commit 7e1eae4

Browse files
committed
[ConstraintSystem] NFC: getCalleeDeclAndArgs no longer needs scratch space for argument labels
1 parent 259ede3 commit 7e1eae4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,7 @@ matchCallArguments(ArrayRef<AnyFunctionType::Param> args,
719719
static std::tuple<ValueDecl *, bool, ArrayRef<Identifier>, bool,
720720
ConstraintLocator *>
721721
getCalleeDeclAndArgs(ConstraintSystem &cs,
722-
ConstraintLocatorBuilder callBuilder,
723-
SmallVectorImpl<Identifier> &argLabelsScratch) {
722+
ConstraintLocatorBuilder callBuilder) {
724723
ArrayRef<Identifier> argLabels;
725724
bool hasTrailingClosure = false;
726725
ConstraintLocator *targetLocator = nullptr;
@@ -925,12 +924,11 @@ ConstraintSystem::TypeMatchResult constraints::matchCallArguments(
925924
ValueDecl *callee;
926925
bool hasAppliedSelf;
927926
ArrayRef<Identifier> argLabels;
928-
SmallVector<Identifier, 2> argLabelsScratch;
929927
bool hasTrailingClosure = false;
930928
ConstraintLocator *calleeLocator;
931929
std::tie(callee, hasAppliedSelf, argLabels, hasTrailingClosure,
932930
calleeLocator) =
933-
getCalleeDeclAndArgs(cs, locator, argLabelsScratch);
931+
getCalleeDeclAndArgs(cs, locator);
934932

935933
ParameterListInfo paramInfo(params, callee, hasAppliedSelf);
936934

0 commit comments

Comments
 (0)