aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2021-09-28 19:15:18 +0200
committerMark de Wever <koraq@xs4all.nl>2021-10-07 18:10:47 +0200
commitb8608b87239ca7817d1536376a8ce4b5265747ee (patch)
treefb41b34c65ae946f36d952a6144c7f778933efa7 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent5ecdb77fc5e71daf994d39840fbe753f46aeca43 (diff)
downloadllvm-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