https://github.com/rapidsna requested changes to this pull request.

For __counted_by to work on a union, one of the following must be true:

Homogeneous Sizes: All members of the union must have the exact same sizeof().
Byte-Size Semantics: The attribute would need to be __sized_by.

Plus, I'm assuming if you have a union field that has `counted_by` or 
`sized_by`, all of the fields need the same annotation following the above 
rule. 

Requesting changes to add these restrictions.

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

Reply via email to