bwendling wrote:

I wrote a similar conclusion to @efriedma-quic in the email thread.

The problem with your example is that, in the absence of the `counted_by` 
attribute, the `__builtin_dynamic_object_size` uses the `alloc_size` attribute 
that's implicit on the `malloc` call.

https://github.com/llvm/llvm-project/pull/111015
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to