Index: Accept compiler errors during index-while-building

Force allowing reading from modules with compiler errors during
index-while-building as a way to recover from more deserialization
issues.
This commit is contained in:
Alexis Laferrière
2025-02-27 13:55:56 -08:00
parent 0ce7225bd6
commit 302d6f1dcf
3 changed files with 15 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