[Frontend] Added option to bypass resilience.

This functionality was added awhile back to support the debugger.
Provide a flag for use by other cliients.
This commit is contained in:
Nate Chandler
2023-07-17 09:00:30 -07:00
parent aad2b6e3e0
commit 8959d4ccb6
6 changed files with 19 additions and 0 deletions

View File

@@ -849,6 +849,8 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
for (auto name: loadedModuleFile->getAllowableClientNames()) {
M.addAllowableClientName(Ctx.getIdentifier(name));
}
if (Ctx.LangOpts.BypassResilienceChecks)
M.setBypassResilience();
auto diagLocOrInvalid = diagLoc.value_or(SourceLoc());
loadInfo.status = loadedModuleFile->associateWithFileContext(
fileUnit, diagLocOrInvalid, Ctx.LangOpts.AllowModuleWithCompilerErrors);