@@ -556,7 +556,7 @@ void SILGenFunction::emitArtificialTopLevel(ClassDecl *mainClass) {
556
556
SILValue args[] = {argc, managedArgv.getValue (), nilValue,
557
557
optName.getValue ()};
558
558
559
- B.createApply (mainClass, UIApplicationMain, {}, args, false );
559
+ B.createApply (mainClass, UIApplicationMain, SubstitutionMap {}, args, false );
560
560
SILValue r = B.createIntegerLiteral (mainClass,
561
561
SILType::getBuiltinIntegerType (32 , ctx), 0 );
562
562
auto rType = F.getConventions ().getSingleSILResultType ();
@@ -601,7 +601,7 @@ void SILGenFunction::emitArtificialTopLevel(ClassDecl *mainClass) {
601
601
auto NSApplicationMain = B.createFunctionRef (mainClass, NSApplicationMainFn);
602
602
SILValue args[] = { argc, argv };
603
603
604
- B.createApply (mainClass, NSApplicationMain, {}, args, false );
604
+ B.createApply (mainClass, NSApplicationMain, SubstitutionMap {}, args, false );
605
605
SILValue r = B.createIntegerLiteral (mainClass,
606
606
SILType::getBuiltinIntegerType (32 , getASTContext ()), 0 );
607
607
auto rType = F.getConventions ().getSingleSILResultType ();
0 commit comments