mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
fix a warning about a zero length array, by ripping out all of the old declattributes code. :-)
Swift SVN r20071
This commit is contained in:
@@ -2841,7 +2841,7 @@ void SILGenFunction::emitArtificialTopLevel(ClassDecl *mainClass) {
|
||||
SILType::getPrimitiveAddressType(argvDecl->getType()->getCanonicalType()));
|
||||
argv = B.createLoad(mainClass, argv);
|
||||
|
||||
if (mainClass->getAttrs().has(DAK_UIApplicationMain)) {
|
||||
if (mainClass->getAttrs().hasAttribute<UIApplicationMainAttr>()) {
|
||||
// Emit a UIKit main.
|
||||
// return UIApplicationMain(C_ARGC, C_ARGV, nil, ClassName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user