[clang] [Clang] Fix 'counted_by' for nested struct pointers (PR #110497)
Jan Hendrik Farr via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 18:06:04 PDT 2024
Cydox wrote:
Yeah so the problem is if you do `__builtin_dynamic_object_size(v, 0)`
In that case it's a `DeclRefExpr`, a pointer, and an `LValue`.
Easy fix is to check if `StructBase` is a pointer instead of checking for LValue, but then I don't really see the point of this change vs my originial PR to be honest (maybe I'm missing something).
https://github.com/llvm/llvm-project/pull/110497
More information about the cfe-commits
mailing list