File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,12 @@ namespace swift {
385385 // / Load swiftmodule files in memory as volatile and avoid mmap.
386386 bool EnableVolatileModules = false ;
387387
388+ // / Allow deserializing implementation only dependencies. This should only
389+ // / be set true by lldb and other tooling, so that deserilization
390+ // / recovery issues won't bring down the debugger.
391+ // / TODO: remove this when @_implementationOnly modules are robust enough.
392+ bool AllowDeserializingImplementationOnly = false ;
393+
388394 // / Sets the target we are building for and updates platform conditions
389395 // / to match.
390396 // /
Original file line number Diff line number Diff line change @@ -2006,7 +2006,8 @@ ModuleDecl *ModuleFile::getModule(ModuleID MID) {
20062006 llvm_unreachable (" implementation detail only" );
20072007 }
20082008 }
2009- return getModule (getIdentifier (MID));
2009+ return getModule (getIdentifier (MID),
2010+ getContext ().LangOpts .AllowDeserializingImplementationOnly );
20102011}
20112012
20122013ModuleDecl *ModuleFile::getModule (ArrayRef<Identifier> name,
You can’t perform that action at this time.
0 commit comments