mizvekov wrote:

It doesn't seem like elide-constructors is wired to control this behavior. 
Seems to be wired only to the StaticAnalyzer presently.

Regardless, the decision where to apply NRVO is currently centralized in 
SemaStmt.

I think "Sema::getNamedReturnInfo(const VarDecl *VD)" would be the best place 
to apply the effects of this flag.

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

Reply via email to