From: Fariborz Jahanian Date: Wed, 18 Sep 2013 15:43:52 +0000 (+0000) Subject: ObjectiveC migrator: placing another check for X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4667154c4cd7724f751c1c72af0ee05bcf5908da;p=clang ObjectiveC migrator: placing another check for 'deprecated' container before doing the 'instancetype' inference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190943 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ARCMigrate/ObjCMT.cpp b/lib/ARCMigrate/ObjCMT.cpp index 5d36fa7b8a..65a00331c5 100644 --- a/lib/ARCMigrate/ObjCMT.cpp +++ b/lib/ARCMigrate/ObjCMT.cpp @@ -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();