mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user