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

Michael Buch via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 16 06:17:34 PDT 2025


Michael137 wrote:

> @Michael137 Looks like I'm breaking the formatters again. Could you take a look? I'm basically removing an extra indirection though `__hash_value_type`. A very similar change to `__tree` (i.e. `{multi,}map`) worked just fine, so maybe they should use the same approach.
> 
> FWIW I think the problem is that `GetElementType` in the `unordered_map` formatter looks at a template argument.

Thanks for the ping

Will have a look. I suspect your hunch is correct

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


More information about the libcxx-commits mailing list