[compiler-rt] asan: refactor interceptor allocation/deallocation functions (PR #145087)
David Justo via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 23:27:32 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) {
----------------
davidmrdavid wrote:
naming is hard, but `array` doesn't immediately register to me as a boolean :-) . Should we consider something like `isArray` to make it more obvious?
https://github.com/llvm/llvm-project/pull/145087
More information about the llvm-commits
mailing list