llvm-project
23674b9c - [CIR] Implement handling for lambda capture of destructured types (#191316)

Commit
14 days ago
[CIR] Implement handling for lambda capture of destructured types (#191316) Lambda captures of variables that require destruction requires us to created cleanup scopes with deferred deactivation. That is, the cleanup scope is created, but added to a list that automatically deactivates the cleanup when we exit the scope in the compiler code where the lambda is being generated. This deferred deactivation mechanism will be needed for other use cases as well, so it is implemented in a general way, which closely follows the classic codegen handling. Assisted-by: Cursor / claude-4.6-opus-high
Author
Parents
Loading