Skip to content

Commit 4fa916b

Browse files
authored
Merge pull request #24276 from compnerd/strike-three-and-youre-out
2 parents d5fcf1a + 382ec0c commit 4fa916b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/SILGen/SILGenFunction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ void SILGenFunction::emitArtificialTopLevel(ClassDecl *mainClass) {
556556
SILValue args[] = {argc, managedArgv.getValue(), nilValue,
557557
optName.getValue()};
558558

559-
B.createApply(mainClass, UIApplicationMain, {}, args, false);
559+
B.createApply(mainClass, UIApplicationMain, SubstitutionMap{}, args, false);
560560
SILValue r = B.createIntegerLiteral(mainClass,
561561
SILType::getBuiltinIntegerType(32, ctx), 0);
562562
auto rType = F.getConventions().getSingleSILResultType();
@@ -601,7 +601,7 @@ void SILGenFunction::emitArtificialTopLevel(ClassDecl *mainClass) {
601601
auto NSApplicationMain = B.createFunctionRef(mainClass, NSApplicationMainFn);
602602
SILValue args[] = { argc, argv };
603603

604-
B.createApply(mainClass, NSApplicationMain, {}, args, false);
604+
B.createApply(mainClass, NSApplicationMain, SubstitutionMap{}, args, false);
605605
SILValue r = B.createIntegerLiteral(mainClass,
606606
SILType::getBuiltinIntegerType(32, getASTContext()), 0);
607607
auto rType = F.getConventions().getSingleSILResultType();

lib/SILGen/SILGenGlobalVariable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ SILGenFunction::emitGlobalVariableRef(SILLocation loc, VarDecl *var) {
7575
SILDeclRef(var, SILDeclRef::Kind::GlobalAccessor),
7676
NotForDefinition);
7777
SILValue accessor = B.createFunctionRefFor(loc, accessorFn);
78-
SILValue addr = B.createApply(loc, accessor, {}, {}, false);
78+
SILValue addr = B.createApply(loc, accessor, SubstitutionMap{}, {}, false);
7979
// FIXME: It'd be nice if the result of the accessor was natively an
8080
// address.
8181
addr = B.createPointerToAddress(

0 commit comments

Comments
 (0)