mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Disable lexical-lifetimes with copy-propagation.
If -disable-copy-propagation is passed, just emit lexical diagnostic markers but do not enable lexical lifetimes.
This commit is contained in:
@@ -1519,6 +1519,10 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
if (Args.hasArg(OPT_enable_copy_propagation))
|
||||
Opts.LexicalLifetimes = LexicalLifetimesOption::On;
|
||||
|
||||
// -disable-copy-propagation implies -enable-lexical-lifetimes=false
|
||||
if (Args.hasArg(OPT_disable_copy_propagation))
|
||||
Opts.LexicalLifetimes = LexicalLifetimesOption::DiagnosticMarkersOnly;
|
||||
|
||||
// If move-only is enabled, always enable lexical lifetime as well. Move-only
|
||||
// depends on lexical lifetimes.
|
||||
if (Args.hasArg(OPT_enable_experimental_move_only))
|
||||
|
||||
Reference in New Issue
Block a user