bwendling wrote:

> I think we need tests for having the counter set to, e.g. `-2`, and that the 
> results from `__builtin_dynamic_object_size` return 0 (rather than negative 
> values), and similarly that all writes to a counted object trap when the 
> counter is 0 or less.

I'll see if I can get something that looks reasonably sane, but it would be far 
better to have a unit-test for such a thing. I'll see if I can come up with one.

https://github.com/llvm/llvm-project/pull/171260
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to