Merge pull request #79713 from xymus/index-while-building-allow-errors

Index: Accept more deserialization inconsistencies during index-while-building
This commit is contained in:
Alexis Laferrière
2025-03-03 11:33:31 -08:00
committed by GitHub
3 changed files with 17 additions and 3 deletions

View File

@@ -135,7 +135,8 @@ ModuleFile::ModuleFile(std::shared_ptr<const ModuleFileSharedCore> core)
}
bool ModuleFile::allowCompilerErrors() const {
return getContext().LangOpts.AllowModuleWithCompilerErrors;
return getContext().LangOpts.AllowModuleWithCompilerErrors ||
getContext().ForceAllowModuleWithCompilerErrors;
}
Status