mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Share TypeConverter between SILModules in batch mode
This commit is contained in:
@@ -277,8 +277,7 @@ int main(int argc, char **argv) {
|
||||
if (Invocation.hasSerializedAST()) {
|
||||
assert(!CI.hasSILModule() &&
|
||||
"performSema() should not create a SILModule.");
|
||||
CI.setSILModule(
|
||||
SILModule::createEmptyModule(CI.getMainModule(), CI.getSILOptions()));
|
||||
CI.createSILModule();
|
||||
std::unique_ptr<SerializedSILLoader> SL = SerializedSILLoader::create(
|
||||
CI.getASTContext(), CI.getSILModule(), nullptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user