mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Don’t free the ASTContext if > 1 primary input.
This commit is contained in:
@@ -813,12 +813,12 @@ void CompilerInstance::performParseOnly(bool EvaluateConditionals) {
|
||||
"Loaded a module during parse-only");
|
||||
}
|
||||
|
||||
void CompilerInstance::freeContextAndSIL() {
|
||||
void CompilerInstance::freeASTContext() {
|
||||
Context.reset();
|
||||
TheSILModule.reset();
|
||||
MainModule = nullptr;
|
||||
SML = nullptr;
|
||||
PrimaryBufferIDs.clear();
|
||||
PrimarySourceFiles.clear();
|
||||
}
|
||||
|
||||
void CompilerInstance::freeSILModule() { TheSILModule.reset(); }
|
||||
|
||||
Reference in New Issue
Block a user