[all-commits] [llvm/llvm-project] ec9341: [CIR] Implement array delete for destructed types ...
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Thu Mar 12 16:56:09 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ec934142e4b470881ae0081ff505881fd5bb532c
https://github.com/llvm/llvm-project/commit/ec934142e4b470881ae0081ff505881fd5bb532c
Author: Andy Kaylor <akaylor at nvidia.com>
Date: 2026-03-12 (Thu, 12 Mar 2026)
Changed paths:
M clang/include/clang/CIR/Dialect/IR/CIROps.td
M clang/lib/CIR/CodeGen/CIRGenExprCXX.cpp
M clang/lib/CIR/Dialect/Transforms/CXXABILowering.cpp
M clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
M clang/test/CIR/CodeGen/delete-array.cpp
Log Message:
-----------
[CIR] Implement array delete for destructed types (#186248)
This extends the cir.delete_array lowering code to introduce a loop that
calls destructors when the array being deleted represents a destructed
type. The lowering introduces the destructors by way of a cir.array.dtor
operation, which is further expanded during LoweringPrepare. This also
required updating the cir.array.dtor operation to accept a raw pointer
to the element type and a value representing the number of elements to
be destructed.
This does not yet handle the possibility of destructors throwing
exceptions.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list