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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to