[clang] [Clang] Enable -fextend-lifetimes at -Og (PR #118026)
Jeremy Morse via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 29 07:38:07 PST 2024
================
@@ -1834,6 +1834,14 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
Opts.setInlining(CodeGenOptions::NormalInlining);
}
+ // If we have specified -Og and have not set any explicit -fextend-lifetimes
+ // value, then default to -fextend-lifetimes=all.
----------------
jmorse wrote:
This is going to create confusion by speculating the existence of an `={all,params,this}` fextend-lifetimes when it doesn't exist yet, and might not.
https://github.com/llvm/llvm-project/pull/118026
More information about the cfe-commits
mailing list