[SourceKit] Disable expensive SIL options (#17306)

Disable the sanitizers and code coverage when building a swift
invocation for the purpose of collecting diagnostics.

This should speed up diagnostic generation and reduce exposure to
compiler bugs.

rdar://40955900
This commit is contained in:
Vedant Kumar
2018-06-18 14:43:27 -07:00
committed by GitHub
parent 88d305cade
commit d910e5a5c2
3 changed files with 19 additions and 0 deletions

View File

@@ -464,6 +464,9 @@ bool SwiftASTManager::initCompilerInvocation(CompilerInvocation &Invocation,
// We don't care about LLVMArgs
FrontendOpts.LLVMArgs.clear();
// Disable expensive SIL options to reduce time spent in SILGen.
disableExpensiveSILOptions(Invocation.getSILOptions());
return false;
}