higher-performance wrote: If you want to just add an easy diagnosis for now, what I'd do is:
1. Change it to a warning 1. Also check that the expression is an aggregate-initialization of a `return` expression This will still have false-positives, but at least it should catch both of our cases to warn people. The ultimate fix should just be to disable RVO in cases that we can't prove it's OK. https://github.com/llvm/llvm-project/pull/94282 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits