[clang] [llvm] [AllocToken] Propagate !alloc_token through inlined malloc_span wrappers (PR #244314)
Marco Elver via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 20 04:08:54 PST 2026
================
@@ -44,6 +44,95 @@ define ptr @overwrite_unknown() {
ret ptr %c
}
+declare { ptr, i64 } @__size_returning_new(i64)
----------------
melver wrote:
All new tests are positive except span_fields. Please add:
- a pointer wrapper returning through a temporary (the behaviour change),
- two stores to the same slot where only the second reaches the load,
expecting no token on the first call,
- a non-span struct such as {ptr, i32} returned by a non-allocation
function.
https://github.com/llvm/llvm-project/pull/244314
More information about the cfe-commits
mailing list