================
@@ -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);
----------------
SLTozer wrote:

I'm currently looking into this to see if there would be any notable negative 
consequences, but for now I'm at least happy to move this to the [next patch 
along](https://github.com/llvm/llvm-project/pull/110102): in that patch, we 
emit fake uses for functions when `OptimizationLevel != 0` and _or_ we've 
passed `-disable-O0-optnone` - that at least gives the ability to pass `-O0 
-fextend-lifetimes` together if desired.

https://github.com/llvm/llvm-project/pull/110000
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to