eddyz87 wrote:
> > @yonghong-song , could you please tell me why you think this change is
> > necessary? My suggestion to do a proper type cast in #232498 seem to be
> > sufficient.
>
> This is to return TRUE return enum type. For examples, enum E1 { A = 5, B =
> 0xFffffFFFF }, the E1 type will be 'unsigned long' and later on if we say
> sizeof(A) it will return 8 since enum E1 is unsigned long. another example
> enum E2 {A = 5, B = -6}, E2 type will 'int' and size(A) will be 4. With this,
> sizeof(A) will give accurate sizeof for enum values.
I don't understand, when `preserve_access_index` is present there is no
compile-time "true" return type.
https://github.com/llvm/llvm-project/pull/236261
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits