Replace `&__rhs` with `_VSTD::addressof(__rhs)` to guard against ADL hijacking of `operator&` in `operator=`. Thanks to @CaseyCarter for bringing it to our attention. Similar issues with hijacking `operator&` still exist, they will be addressed separately. Reviewed By: #libc, Quuxplusone, ldionne Differential Revision: https://reviews.llvm.org/D110852 |
||
|---|---|---|
| .. | ||
| copy_assign.pass.cpp | ||
| gslice_array_assign.pass.cpp | ||
| indirect_array_assign.pass.cpp | ||
| initializer_list_assign.pass.cpp | ||
| mask_array_assign.pass.cpp | ||
| move_assign.pass.cpp | ||
| slice_array_assign.pass.cpp | ||
| value_assign.addressof.compile.pass.cpp | ||
| value_assign.pass.cpp | ||