Skip to content

Commit a72afb3

Browse files
authored
Merge pull request #41653 from atrick/comment-lexical
Add a comment about lexical lifetimes to CompilerInvocation.
2 parents c194d1c + ab31239 commit a72afb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,10 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
15531553
.Case("false", false)
15541554
.Default(None);
15551555
}
1556+
1557+
// Allow command line flags to override the default value of
1558+
// Opts.LexicalLifetimes. If no explicit flags are passed, then
1559+
// Opts.LexicalLifetimes retains its initial value.
15561560
Optional<bool> enableLexicalLifetimesFlag;
15571561
if (Arg *A = Args.getLastArg(OPT_enable_lexical_lifetimes)) {
15581562
enableLexicalLifetimesFlag =

0 commit comments

Comments
 (0)