[clang] [Clang] Add "extend lifetime" flags and release note (PR #110000)
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 3 10:17:22 PDT 2024
================
@@ -2217,6 +2217,11 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
Args.getAllArgValues(OPT_fsanitize_trap_EQ), Diags,
Opts.SanitizeTrap);
+ Opts.ExtendThisPtr =
+ Opts.OptimizationLevel > 0 && Args.hasArg(OPT_fextend_this_ptr);
----------------
dwblaikie wrote:
Is it worth maybe making this inconditional, even at -O0, in case someone's put an optimize attribute on a function, etc, and wants to override it?
https://github.com/llvm/llvm-project/pull/110000
More information about the cfe-commits
mailing list