[compiler-rt] asan: refactor interceptor allocation/deallocation functions (PR #145087)

Justin King via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 06:37:22 PDT 2025


================
@@ -1117,6 +1111,99 @@ uptr asan_malloc_usable_size(const void *ptr, uptr pc, uptr bp) {
   return usable_size;
 }
 
+namespace {
+
+void *asan_new(uptr size, BufferedStackTrace *stack, bool array) {
----------------
jcking wrote:

Considering its isolated to just this file and in an anonymous namespace, it's less important to be that clear. If this were in a header and accessible across many files, I would be inclined to agree.

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


More information about the llvm-commits mailing list