summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/ARCMT.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-06-20 01:46:26 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-06-20 01:46:26 +0000
commitaa38f695ad1849bd319e9a197afb3c00a101ab63 (patch)
tree0e8ee29c15ccd03f8c0c57ce1ea080cce7e780e0 /clang/lib/ARCMigrate/ARCMT.cpp
parent44320367ac11793ab83361122c1463c73b9da8ce (diff)
downloadbcm5719-llvm-aa38f695ad1849bd319e9a197afb3c00a101ab63.tar.gz
bcm5719-llvm-aa38f695ad1849bd319e9a197afb3c00a101ab63.zip
[arcmt]
-Disable -pedantic-errors when migrating per Jordan's suggestion. -Use llvm_move() per John's suggestion. llvm-svn: 158785
Diffstat (limited to 'clang/lib/ARCMigrate/ARCMT.cpp')
-rw-r--r--clang/lib/ARCMigrate/ARCMT.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/ARCMigrate/ARCMT.cpp b/clang/lib/ARCMigrate/ARCMT.cpp
index fcbcb2194a3..dd9461b33d1 100644
--- a/clang/lib/ARCMigrate/ARCMT.cpp
+++ b/clang/lib/ARCMigrate/ARCMT.cpp
@@ -195,6 +195,7 @@ createInvocationForMigration(CompilerInvocation &origCI) {
CInvok->getLangOpts()->ObjCAutoRefCount = true;
CInvok->getLangOpts()->setGC(LangOptions::NonGC);
CInvok->getDiagnosticOpts().ErrorLimit = 0;
+ CInvok->getDiagnosticOpts().PedanticErrors = 0;
// Ignore -Werror flags when migrating.
std::vector<std::string> WarnOpts;
@@ -205,7 +206,7 @@ createInvocationForMigration(CompilerInvocation &origCI) {
WarnOpts.push_back(*I);
}
WarnOpts.push_back("error=arc-unsafe-retained-assign");
- CInvok->getDiagnosticOpts().Warnings = WarnOpts;
+ CInvok->getDiagnosticOpts().Warnings = llvm_move(WarnOpts);
CInvok->getLangOpts()->ObjCRuntimeHasWeak = HasARCRuntime(origCI);
OpenPOWER on IntegriCloud