mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a comment about lexical lifetimes to CompilerInvocation.
Otherwise, it's hard for me to tell who's in charge of setting the default.
This commit is contained in:
@@ -1553,6 +1553,10 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
.Case("false", false)
|
||||
.Default(None);
|
||||
}
|
||||
|
||||
// Allow command line flags to override the default value of
|
||||
// Opts.LexicalLifetimes. If no explicit flags are passed, then
|
||||
// Opts.LexicalLifetimes retains its initial value.
|
||||
Optional<bool> enableLexicalLifetimesFlag;
|
||||
if (Arg *A = Args.getLastArg(OPT_enable_lexical_lifetimes)) {
|
||||
enableLexicalLifetimesFlag =
|
||||
|
||||
Reference in New Issue
Block a user