]> granicus.if.org Git - clang/commitdiff
ObjectiveC migrator: placing another check for
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 18 Sep 2013 15:43:52 +0000 (15:43 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 18 Sep 2013 15:43:52 +0000 (15:43 +0000)
'deprecated' container before doing the 'instancetype'
inference.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190943 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ARCMigrate/ObjCMT.cpp

index 5d36fa7b8ab20bb98f1309ea2c317702752529a6..65a00331c5b69c229879d697f009f7381a2312ae 100644 (file)
@@ -816,6 +816,9 @@ void ObjCMigrateASTConsumer::migrateNsReturnsInnerPointer(ASTContext &Ctx,
 
 void ObjCMigrateASTConsumer::migrateMethods(ASTContext &Ctx,
                                                  ObjCContainerDecl *CDecl) {
+  if (CDecl->isDeprecated())
+    return;
+  
   // migrate methods which can have instancetype as their result type.
   for (ObjCContainerDecl::method_iterator M = CDecl->meth_begin(),
        MEnd = CDecl->meth_end();