[CIR] Implement array destruction cleanup handling
Open
ClangIR
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
We need to add partial array cleanup handling when we expand `cir.array.dtor` operations in conditions that require such partial cleanup. The need for partial cleanup should be indicated by a `useEHCleanup` parameter to the `emitArrayDestroy` function, but that parameter hasn't been added yet. It ultimately needs to be threaded through the EH stack using the `useEHCleanupForArray` flag, which is present in some places but missing in others.
Contributor guide
Assessment
This issue has not been assessed yet.