[ownership] Change the stdlib to serialize code in ossa form on Darwin.

There is some sort of ASAN issue that this exposes on Linux, so I am going to do
this on Darwin and then debug the Linux issue using ASAN over the weekend/next
week.
This commit is contained in:
Michael Gottesman
2021-02-05 18:31:34 -08:00
parent 133901d6f6
commit dd6439d31e
14 changed files with 263 additions and 7 deletions

View File

@@ -1204,6 +1204,11 @@ 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);