SILGen: Fix broken UIApplicationMain test on iOS

This commit is contained in:
Slava Pestov
2016-12-01 19:40:19 -08:00
parent b3fe5c91a2
commit d3a03f73d3

View File

@@ -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,