[ownership] On non-Darwin platforms start serializing the stdlib in OSSA as well.

I had to fix a memory corruption bug (see previous commit) to land this. But now
that it is fixed, we are ready!
This commit is contained in:
Michael Gottesman
2021-02-17 13:19:49 -08:00
parent 891bd00f66
commit 57654da4db
10 changed files with 14 additions and 244 deletions

View File

@@ -1204,11 +1204,6 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
Args.hasArg(OPT_sil_stop_optzns_before_lowering_ownership);
if (const Arg *A = Args.getLastArg(OPT_external_pass_pipeline_filename))
Opts.ExternalPassPipelineFilename = A->getValue();
// If our triple is a darwin triple, lower ownership on the stdlib after we
// serialize.
if (Triple.isOSDarwin()) {
Opts.SerializeStdlibWithOwnershipWithOpts = true;
}
Opts.GenerateProfile |= Args.hasArg(OPT_profile_generate);
const Arg *ProfileUse = Args.getLastArg(OPT_profile_use);