[clang] [clang CodeGen] Restrict return statements nested in return statements. (PR #94282)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 4 09:56:18 PDT 2024


efriedma-quic wrote:

You're right, we have issues anytime we construct an object directly into the return value slot, and the check isn't catching all those cases.  It shouldn't really be visible to users unless you're constructing an object using a non-trivial constructor... but the codegen is still wrong.  I'll think about it a bit more.

https://github.com/llvm/llvm-project/pull/94282


More information about the cfe-commits mailing list