mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user