efriedma-quic 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`.

Can you give a more complete example?  I just tried the following, and I see an 
lvaluetorvalue cast.

int f(const void *p) { return __builtin_dynamic_object_size(p, 0); }

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