diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-06-20 01:46:26 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-06-20 01:46:26 +0000 |
commit | 1912982993347c8b0b20aed311fca61ce2600479 (patch) | |
tree | 2217e397fc0f6e3fb812367cad7b3f2d278b6172 | |
parent | e38c1c2c449529e60f48e740cb8662e68e5a5330 (diff) |
[arcmt]
-Disable -pedantic-errors when migrating per Jordan's suggestion.
-Use llvm_move() per John's suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158785 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/ARCMigrate/ARCMT.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ARCMigrate/ARCMT.cpp b/lib/ARCMigrate/ARCMT.cpp index fcbcb2194a..dd9461b33d 100644 --- a/lib/ARCMigrate/ARCMT.cpp +++ b/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); |