forked from OSchip/llvm-project
[arcmt]
-Disable -pedantic-errors when migrating per Jordan's suggestion. -Use llvm_move() per John's suggestion. llvm-svn: 158785
This commit is contained in:
parent
44320367ac
commit
aa38f695ad
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue