mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -878,6 +878,12 @@ ASTUnitRef ASTProducer::createASTUnit(SwiftASTManager::Implementation &MgrImpl,
|
||||
// TypeResolver is set before.
|
||||
ASTRef->Impl.TypeResolver = createLazyResolver(CompIns.getASTContext());
|
||||
|
||||
if (TracedOp.enabled()) {
|
||||
SmallVector<DiagnosticEntryInfo, 8> Diagnostics;
|
||||
Consumer.getAllDiagnostics(Diagnostics);
|
||||
TracedOp.finish(Diagnostics);
|
||||
}
|
||||
|
||||
return ASTRef;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user