[clang] [llvm] [AllocToken] Propagate !alloc_token through inlined malloc_span wrappers (PR #244314)
David Li via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 22 21:06:29 PST 2026
================
@@ -44,6 +44,95 @@ define ptr @overwrite_unknown() {
ret ptr %c
}
+declare { ptr, i64 } @__size_returning_new(i64)
----------------
david-xl wrote:
Added negative tests: a pointer wrapper returning through a temporary (only the call last stored before the load is tagged), two stores to the same slot (the first call gets no token), a clobbering call between store and load (no token), a pointer taken from {ptr, i8} returned by a non-allocating call (no token), a rebuilt span in a phi (only the real allocation is tagged), and field-wise stores to the return temporary (no token).
https://github.com/llvm/llvm-project/pull/244314
More information about the cfe-commits
mailing list