diff --git a/lib/SILGen/SILGenApply.cpp b/lib/SILGen/SILGenApply.cpp index d92c281ba470d..131164cc5f703 100644 --- a/lib/SILGen/SILGenApply.cpp +++ b/lib/SILGen/SILGenApply.cpp @@ -1910,7 +1910,9 @@ buildBuiltinLiteralArgs(SILGenFunction &SGF, SGFContext C, RValue string = SGF.emitApplyAllocatingInitializer( expr, strInitDecl, std::move(strLiteralArgs), /*overriddenSelfType*/ Type(), SGFContext()); - PreparedArguments args({AnyFunctionType::Param(ctx.getStringType())}); + PreparedArguments args( + ArrayRef({ + AnyFunctionType::Param(ctx.getStringType())})); args.add(expr, std::move(string)); return args; }