llvm / llvm/llvm-project

[CIR] Implement array destruction cleanup handling

Open
#192,349 4 comments 0 reactions 1 assignee Claimed by @andykaylor View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.