Skip to content

Commit 8747cf2

Browse files
authored
Merge pull request #6020 from slavapestov/fix-silgen-uiapplicationmain
SILGen: Fix broken UIApplicationMain test on iOS
2 parents b3fe5c9 + d3a03f7 commit 8747cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILGen/SILGenFunction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,9 @@ void SILGenFunction::emitArtificialTopLevel(ClassDecl *mainClass) {
518518
// we're getting away with it because the types are guaranteed to already
519519
// be imported.
520520
ASTContext &ctx = getASTContext();
521-
DeclContext *UIKit = ctx.getLoadedModule(ctx.getIdentifier("UIKit"));
521+
ModuleDecl *UIKit = ctx.getLoadedModule(ctx.getIdentifier("UIKit"));
522522
SmallVector<ValueDecl *, 1> results;
523-
UIKit->lookupQualified(UIKit->getDeclaredInterfaceType(),
523+
UIKit->lookupQualified(UIKit->getInterfaceType(),
524524
ctx.getIdentifier("UIApplicationMain"),
525525
NL_QualifiedDefault,
526526
/*resolver*/nullptr,

0 commit comments

Comments
 (0)