[libc++] Use addressof to fix debug tests.
authorMark de Wever <koraq@xs4all.nl>
Sun, 10 Oct 2021 13:18:46 +0000 (15:18 +0200)
committerMark de Wever <koraq@xs4all.nl>
Tue, 12 Oct 2021 16:15:35 +0000 (18:15 +0200)
commit968e27397caabafdad46a79dee5677f64bc8da89
tree2498c03e4f90721b10abf0aabd247e2d58129019
parentd9fa186a5cfe5527b086698a7a857e896193b85c
[libc++] Use addressof to fix debug tests.

Fixes the tests added in D110852 for the debug iterators.

Similar issues with hijacking `operator&` still exist, they will be
addressed separately.

Reviewed By: #libc, ldionne, Quuxplusone

Differential Revision: https://reviews.llvm.org/D111564
libcxx/include/__hash_table
libcxx/include/list
libcxx/include/unordered_map
libcxx/test/std/containers/sequences/list/list.cons/assign_copy.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_copy.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_copy.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_copy.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_copy.addressof.compile.pass.cpp