[compiler-rt] [llvm] scudo: Support free_sized and free_aligned_sized from C23 (PR #146556)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 14:49:45 PDT 2025
================
@@ -53,10 +53,11 @@ namespace Chunk {
// but https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414 prevents it from
// happening, as it will error, complaining the number of bits is not enough.
enum Origin : u8 {
- Malloc = 0,
- New = 1,
- NewArray = 2,
- Memalign = 3,
+ Malloc = 0, // malloc, calloc, realloc, free, free_sized
+ New = 1, // operator new, operator delete
+ NewArray = 2, // operator new [], operator delete []
+ AlignedAlloc = 3, // aligned_alloc, posix_memalign, memalign, pvalloc, valloc,
----------------
vitalybuka wrote:
Either undo the rename into AlignedAlloc
or extract into a separate patch
https://github.com/llvm/llvm-project/pull/146556
More information about the llvm-commits
mailing list