mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILGen: Fix broken UIApplicationMain test on iOS
This commit is contained in:
@@ -518,9 +518,9 @@ void SILGenFunction::emitArtificialTopLevel(ClassDecl *mainClass) {
|
|||||||
// we're getting away with it because the types are guaranteed to already
|
// we're getting away with it because the types are guaranteed to already
|
||||||
// be imported.
|
// be imported.
|
||||||
ASTContext &ctx = getASTContext();
|
ASTContext &ctx = getASTContext();
|
||||||
DeclContext *UIKit = ctx.getLoadedModule(ctx.getIdentifier("UIKit"));
|
ModuleDecl *UIKit = ctx.getLoadedModule(ctx.getIdentifier("UIKit"));
|
||||||
SmallVector<ValueDecl *, 1> results;
|
SmallVector<ValueDecl *, 1> results;
|
||||||
UIKit->lookupQualified(UIKit->getDeclaredInterfaceType(),
|
UIKit->lookupQualified(UIKit->getInterfaceType(),
|
||||||
ctx.getIdentifier("UIApplicationMain"),
|
ctx.getIdentifier("UIApplicationMain"),
|
||||||
NL_QualifiedDefault,
|
NL_QualifiedDefault,
|
||||||
/*resolver*/nullptr,
|
/*resolver*/nullptr,
|
||||||
|
|||||||
Reference in New Issue
Block a user