From: Fariborz Jahanian Date: Tue, 17 Sep 2013 22:41:25 +0000 (+0000) Subject: ObjectiveC migrator: Don't infer property from X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a65f4251fe5548e0b4478d584796ca84a6f5ebc;p=clang ObjectiveC migrator: Don't infer property from 'deprected' setters either. // rdar://14989365 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190894 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ARCMigrate/ObjCMT.cpp b/lib/ARCMigrate/ObjCMT.cpp index d0d6b8794f..c15b410744 100644 --- a/lib/ARCMigrate/ObjCMT.cpp +++ b/lib/ARCMigrate/ObjCMT.cpp @@ -770,6 +770,8 @@ bool ObjCMigrateASTConsumer::migrateProperty(ASTContext &Ctx, } if (SetterMethod) { + if (SetterMethod->isDeprecated()) + return false; // Is this a valid setter, matching the target getter? QualType SRT = SetterMethod->getResultType(); if (!SRT->isVoidType())