[ParseableInterface] Don't serialize all SIL like a SIB file (#20976)

This would break resilience, which makes a distinction between "SIL
only inside the module, which is inside the resilience domain" and
"SIL we're going to serialize, which is outside the resilience
domain".
This commit is contained in:
Jordan Rose
2018-12-03 18:29:48 -08:00
committed by GitHub
parent f871b0e661
commit f8852c97de
2 changed files with 54 additions and 1 deletions

View File

@@ -349,7 +349,6 @@ static bool buildSwiftModuleFromSwiftInterface(
SerializationOptions SerializationOpts;
std::string OutPathStr = OutPath;
SerializationOpts.OutputPath = OutPathStr.c_str();
SerializationOpts.SerializeAllSIL = true;
SerializationOpts.ModuleLinkName = FEOpts.ModuleLinkName;
SmallVector<FileDependency, 16> Deps;
if (collectDepsForSerialization(FS, SubInstance, InPath, ModuleCachePath,