[clang] [C++20][Coroutines] Lambda-coroutine with operator new in promise_type (PR #84193)

Andreas Fertig via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 2 04:58:03 PDT 2024


andreasfertig wrote:

Hello @ChuanqiXu9,

> Hi Andreas, thanks for looking into this. I am still confused about whether or not your new branch can fix the crash or not.

It's my pleasure! The new branch doesn't fix the crash. If I understand why it is crashing, this branch is a better change compared to the previous merged code.


> For the question about the crash itself, I don't have any insight though, I feel like this is a defect in the code generator. I didn't understand why mark a variable as referenced or not by the frontend may affect the code generation.

I'm also struggling with that. As far as I could see, the coroutine part does nothing special for classes. I suspect that some other coroutine-unrelated part does something with the lambda. I also checked whether `I` holds a `getKnownLValue`, but that's not the case either.

Do you know who I could ping to get assistance with the CodeGen part? 



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


More information about the cfe-commits mailing list