mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Dependency Scanning] Give each scanner worker a unique Diagnostic Engine
Otherwise, when multiple workers encounter a diagnostic simultaneously we can encounter races which lead to corrupted diagnostic data or crashes Resolves rdar://159598539
This commit is contained in:
@@ -107,6 +107,8 @@ private:
|
||||
|
||||
// Worker-specific instance of CompilerInvocation
|
||||
std::unique_ptr<CompilerInvocation> workerCompilerInvocation;
|
||||
// Worker-specific diagnostic engine
|
||||
std::unique_ptr<DiagnosticEngine> workerDiagnosticEngine;
|
||||
// Worker-specific instance of ASTContext
|
||||
std::unique_ptr<ASTContext> workerASTContext;
|
||||
// An AST delegate for interface scanning.
|
||||
|
||||
Reference in New Issue
Block a user