summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-07-19 18:57:15 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-07-19 18:57:15 +0000
commit47b1517c52c229f50f76b86a99904e00a77901f8 (patch)
tree3f7631fb23a101ad738fc587853b9a86e7aba4c0 /clang/lib
parentdb6d85ef92726c452e20c3a6cc55e2edd17c686a (diff)
downloadbcm5719-llvm-47b1517c52c229f50f76b86a99904e00a77901f8.tar.gz
bcm5719-llvm-47b1517c52c229f50f76b86a99904e00a77901f8.zip
[arcmt] After checking is successful disable auto-synthesize to avoid "@synthesize of 'weak' property is only
allowed in ARC" errors. rdar://14461559 llvm-svn: 186709
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/ARCMigrate/ARCMT.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/ARCMigrate/ARCMT.cpp b/clang/lib/ARCMigrate/ARCMT.cpp
index a6d48762fe5..8a2b939ac30 100644
--- a/clang/lib/ARCMigrate/ARCMT.cpp
+++ b/clang/lib/ARCMigrate/ARCMT.cpp
@@ -324,6 +324,9 @@ bool arcmt::checkForManualIssues(CompilerInvocation &origCI,
// If we are migrating code that gets the '-fobjc-arc' flag, make sure
// to remove it so that we don't get errors from normal compilation.
origCI.getLangOpts()->ObjCAutoRefCount = false;
+ // Disable auto-synthesize to avoid "@synthesize of 'weak' property is only
+ // allowed in ARC" errors.
+ origCI.getLangOpts()->ObjCDefaultSynthProperties = false;
return capturedDiags.hasErrors() || testAct.hasReportedErrors();
}
OpenPOWER on IntegriCloud