mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SIL: Share TypeConverter between SILModules in batch mode
This commit is contained in:
@@ -1000,7 +1000,8 @@ ASTUnitRef ASTProducer::createASTUnit(
|
||||
|
||||
if (auto SF = CompIns.getPrimarySourceFile()) {
|
||||
SILOptions SILOpts = Invocation.getSILOptions();
|
||||
std::unique_ptr<SILModule> SILMod = performSILGeneration(*SF, SILOpts);
|
||||
auto &TC = CompIns.getSILTypes();
|
||||
std::unique_ptr<SILModule> SILMod = performSILGeneration(*SF, TC, SILOpts);
|
||||
runSILDiagnosticPasses(*SILMod);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user