mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Parse] [Sema] Ensure lazy immediate mode only enabled when requested
This commit is contained in:
@@ -1576,7 +1576,9 @@ CompilerInstance::getSourceFileParsingOptions(bool forPrimary) const {
|
||||
frontendOpts.ReuseFrontendForMultipleCompilations) {
|
||||
opts |= ParsingFlags::EnableInterfaceHash;
|
||||
}
|
||||
if (action == ActionType::Immediate) {
|
||||
const auto &LangOpts = Invocation.getLangOptions();
|
||||
if (action == ActionType::Immediate &&
|
||||
LangOpts.hasFeature(Feature::LazyImmediate)) {
|
||||
opts -= ParsingFlags::DisableDelayedBodies;
|
||||
opts -= ParsingFlags::ValidateNewParserDiagnostics;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user