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:
Chris Lattner
2014-07-17 04:48:34 +00:00
parent 1bd9d81971
commit fdaa28ce16
7 changed files with 36 additions and 173 deletions

View File

@@ -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);