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:
Andrew Trick
2022-03-03 15:08:26 -08:00
parent 23abf2198f
commit ab31239ace

View File

@@ -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 =