@@ -2002,8 +2002,7 @@ static bool fixMissingArguments(ConstraintSystem &cs, ASTNode anchor,
2002
2002
// synthesized arguments to it.
2003
2003
if (argumentTuple) {
2004
2004
cs.addConstraint (ConstraintKind::Bind, *argumentTuple,
2005
- FunctionType::composeTuple (ctx, args,
2006
- /* canonicalVararg=*/ false ),
2005
+ FunctionType::composeTuple (ctx, args),
2007
2006
cs.getConstraintLocator (anchor));
2008
2007
}
2009
2008
@@ -2218,8 +2217,7 @@ ConstraintSystem::matchFunctionTypes(FunctionType *func1, FunctionType *func2,
2218
2217
};
2219
2218
2220
2219
auto implodeParams = [&](SmallVectorImpl<AnyFunctionType::Param> ¶ms) {
2221
- auto input = AnyFunctionType::composeTuple (getASTContext (), params,
2222
- /* canonicalVararg=*/ false );
2220
+ auto input = AnyFunctionType::composeTuple (getASTContext (), params);
2223
2221
2224
2222
params.clear ();
2225
2223
// If fixes are disabled let's do an easy thing and implode
@@ -6073,8 +6071,7 @@ ConstraintSystem::simplifyConstructionConstraint(
6073
6071
6074
6072
// Tuple construction is simply tuple conversion.
6075
6073
Type argType = AnyFunctionType::composeTuple (getASTContext (),
6076
- fnType->getParams (),
6077
- /* canonicalVararg=*/ false );
6074
+ fnType->getParams ());
6078
6075
Type resultType = fnType->getResult ();
6079
6076
6080
6077
ConstraintLocatorBuilder builder (locator);
@@ -7006,8 +7003,7 @@ ConstraintSystem::simplifyFunctionComponentConstraint(
7006
7003
7007
7004
if (kind == ConstraintKind::FunctionInput) {
7008
7005
type = AnyFunctionType::composeTuple (getASTContext (),
7009
- funcTy->getParams (),
7010
- /* canonicalVararg=*/ false );
7006
+ funcTy->getParams ());
7011
7007
locKind = ConstraintLocator::FunctionArgument;
7012
7008
} else if (kind == ConstraintKind::FunctionResult) {
7013
7009
type = funcTy->getResult ();
0 commit comments