[Frontend] Intro flags to control deserialization safety

Deserialization safety remains off by default at the moment.
This commit is contained in:
Alexis Laferrière
2023-01-03 10:08:03 -08:00
parent c76dab7fb7
commit d1343c86fb
4 changed files with 24 additions and 2 deletions

View File

@@ -274,6 +274,11 @@ bool CompilerInstance::setUpASTContextIfNeeded() {
registerIRGenSILTransforms(*Context);
if (Invocation.getFrontendOptions().RequestedAction ==
FrontendOptions::ActionType::MergeModules ||
Invocation.getLangOptions().DebuggerSupport)
Invocation.getLangOptions().EnableDeserializationSafety = false;
if (setUpModuleLoaders())
return true;