Sirraide wrote:

> the result of `String::make()` might be getting moved-from

Only if it returns an xvalue; if it returns a prvalue, it’s directly 
constructed into `str`, so we only get a single destructor call.



https://github.com/llvm/llvm-project/pull/166110
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to