[clang-tools-extra] [clang] [llvm] [codegen] Emit cleanups for lifetime-extended temporaries when an expr contains control-flow (PR #80698)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 6 06:25:19 PST 2024


usx95 wrote:

Thanks for the example. I was only considering branches leading outside function scope (`return` and coroutine destruction while `co_await`-ing).

I have captured the lifetime-extended cleanup stack size expected by the jump destination. This seems to generalize well to all kinds of branch instructions.
PTAL

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


More information about the cfe-commits mailing list