forked from OSchip/llvm-project
Turn off "disable free" mode when preprocessing imported module files in
-frewrite-imports mode. This could end up accumulating a very large amount of intermediate state. Clear it out after each module file is processed. llvm-svn: 305764
This commit is contained in:
parent
4a99e37edc
commit
4f05b36285
|
@ -243,6 +243,7 @@ public:
|
|||
Instance.createDiagnostics(
|
||||
new ForwardingDiagnosticConsumer(CI.getDiagnosticClient()),
|
||||
/*ShouldOwnClient=*/true);
|
||||
Instance.getFrontendOpts().DisableFree = false;
|
||||
Instance.getFrontendOpts().Inputs.clear();
|
||||
Instance.getFrontendOpts().Inputs.emplace_back(
|
||||
Filename, InputKind(InputKind::Unknown, InputKind::Precompiled));
|
||||
|
|
Loading…
Reference in New Issue