diff options
author | Mark de Wever <koraq@xs4all.nl> | 2021-09-28 19:15:18 +0200 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2021-10-07 18:10:47 +0200 |
commit | b8608b87239ca7817d1536376a8ce4b5265747ee (patch) | |
tree | fb41b34c65ae946f36d952a6144c7f778933efa7 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 5ecdb77fc5e71daf994d39840fbe753f46aeca43 (diff) | |
download | llvm-b8608b87239ca7817d1536376a8ce4b5265747ee.zip llvm-b8608b87239ca7817d1536376a8ce4b5265747ee.tar.gz llvm-b8608b87239ca7817d1536376a8ce4b5265747ee.tar.bz2 |
[libc++] Use addressof in assignment operator.
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions