dwblaikie wrote:

> Oh, in this particular case, the issue isn't the computed datasize, it's that 
> FieldDecl::isZeroSize() returns the wrong result. If that's the case, maybe 
> we can just change FieldDecl::isZeroSize() to say the field is zero size? So 
> essentially, we pretend all empty fields are no_unique_address. Nothing in 
> codegen should care if we treat an non-zero-size empty field as if it's 
> zero-size.

(sorry if I'm jumping in without enough context... ) - couldn't the inverse be 
true, then - that codegen should ignore if something `isZeroSize` or not? So 
lldb doesn't have to put any particular value here?

https://github.com/llvm/llvm-project/pull/93809
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to