[compiler-rt] [llvm] scudo: Support free_sized and free_aligned_sized from C23 (PR #146556)

Justin King via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 06:52:15 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,
----------------
jcking wrote:

Fair. Was a bit pedantic to rename. I do not care that much. Reverted.

https://github.com/llvm/llvm-project/pull/146556


More information about the llvm-commits mailing list