rjmccall added a comment. In D74094#4646975 <https://reviews.llvm.org/D74094#4646975>, @xbolva00 wrote:
>>> So we can start by giving these objects full-expression lifetime, chase >>> down any program bugs that that uncovers (which will all *unquestionably* >>> be program bugs under the standard), and then gradually work on landing the >>> more aggressive rule (perhaps even for non-trivial types). > > maybe provide a new flag to control this behaviour? You mean for when we start limiting lifetimes to the call rather than the full-expression? I don't know that we want such a flag in the long term, but having at least a -cc1 flag is usually helpful when we're bringing up new/stricter optimizations, yeah. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D74094/new/ https://reviews.llvm.org/D74094 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits