summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/ARCMT.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-06-22 18:03:59 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-06-22 18:03:59 +0000
commit59b5f356ad1705fe2c5af385dc6630c73218371a (patch)
treec9472734b997a7d6974c86a602232f63de30a94b /clang/lib/ARCMigrate/ARCMT.cpp
parent92b12187dd80ccd4e63113749a81b5bd93c92888 (diff)
downloadbcm5719-llvm-59b5f356ad1705fe2c5af385dc6630c73218371a.tar.gz
bcm5719-llvm-59b5f356ad1705fe2c5af385dc6630c73218371a.zip
[arcmt] Make -Warc-unsafe-retained-assign an error when migrating. rdar://8939557
llvm-svn: 133627
Diffstat (limited to 'clang/lib/ARCMigrate/ARCMT.cpp')
-rw-r--r--clang/lib/ARCMigrate/ARCMT.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/ARCMigrate/ARCMT.cpp b/clang/lib/ARCMigrate/ARCMT.cpp
index 13bb33d2b85..7f3479604e2 100644
--- a/clang/lib/ARCMigrate/ARCMT.cpp
+++ b/clang/lib/ARCMigrate/ARCMT.cpp
@@ -187,6 +187,8 @@ CompilerInvocation *createInvocationForMigration(CompilerInvocation &origCI) {
CInvok->getPreprocessorOpts().addMacroDef(define);
CInvok->getLangOpts().ObjCAutoRefCount = true;
CInvok->getDiagnosticOpts().ErrorLimit = 0;
+ CInvok->getDiagnosticOpts().Warnings.push_back(
+ "error=arc-unsafe-retained-assign");
CInvok->getLangOpts().ObjCNoAutoRefCountRuntime = !HasARCRuntime(origCI);
return CInvok.take();
OpenPOWER on IntegriCloud