[libcxx-commits] [libcxx] [libc++] Avoid type-punning between __hash_value_type and pair (PR #143501)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 16 09:28:29 PDT 2025


philnik777 wrote:

@Michael137 This patch removes the definition on purpose. With this patch it's only ever used as a tag type and a `pair<const Key, Value>` is used instead. `__get_hash_node_value_type` unwraps `__hash_value_type` to a `pair` now. We have to keep `__hash_value_type` as the template argument for ABI reasons unfortunately.

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


More information about the libcxx-commits mailing list