mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Frontend] Intro flags to control deserialization safety
Deserialization safety remains off by default at the moment.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user