[libcxx-commits] [libcxx] [libc++] Use remove_pointer builtin as library traits (PR #91838)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 16 03:01:40 PDT 2024


Chilledheart wrote:

> I agree that it doesn't make a ton of sense to guard this on the version, since the GCC folks make it very clear that they don't intend to support the use of the builtin directly. 

For type traits, no. It is because type traits structure doesn't require demangle names. For value traits, yes. They are using the builtin directly to avoid intermediate symbols.

We have the same issues with `__add_pointer` as well where there're lacking structure used for type alias.

https://github.com/llvm/llvm-project/pull/91838


More information about the libcxx-commits mailing list