Author: fjahanian
Date: Mon Oct  7 15:41:53 2013
New Revision: 192129

URL: http://llvm.org/viewvc/llvm-project?rev=192129&view=rev
Log:
ObjectiveC migrator: A typical implementation of
'default' methods in Foundation does not
infer 'instancetype' for methods' result type.
// rdar://15145218

Modified:
    cfe/trunk/lib/Basic/IdentifierTable.cpp
    cfe/trunk/test/ARCMT/objcmt-instancetype-2.m.result

Modified: cfe/trunk/lib/Basic/IdentifierTable.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/IdentifierTable.cpp?rev=192129&r1=192128&r2=192129&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/IdentifierTable.cpp (original)
+++ cfe/trunk/lib/Basic/IdentifierTable.cpp Mon Oct  7 15:41:53 2013
@@ -465,7 +465,6 @@ ObjCInstanceTypeFamily Selector::getInst
       break;
     case 'd':
       if (startsWithWord(name, "dictionary")) return OIT_Dictionary;
-      if (startsWithWord(name, "default")) return OIT_Singleton;
       break;
     case 's':
       if (startsWithWord(name, "shared") ||

Modified: cfe/trunk/test/ARCMT/objcmt-instancetype-2.m.result
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ARCMT/objcmt-instancetype-2.m.result?rev=192129&r1=192128&r2=192129&view=diff
==============================================================================
--- cfe/trunk/test/ARCMT/objcmt-instancetype-2.m.result (original)
+++ cfe/trunk/test/ARCMT/objcmt-instancetype-2.m.result Mon Oct  7 15:41:53 2013
@@ -79,7 +79,7 @@ typedef enum NSURLBookmarkResolutionOpti
 @end
 
 @interface NSNotificationCenter
-+ (instancetype) defaultCenter;
++ (id) defaultCenter;
 @end
 
 @interface UIApplication


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to