Files
clang-p2996/llvm/lib/CodeGen/StackProtector.cpp
Nikita Popov b2aba39001 [StackProtector] Handle atomicrmw xchg in HasAddressTaken heuristic
Atomicrmw xchg can directly take a pointer operand, so we should
treat it similarly to store or cmpxchg.

In practice, I believe that all targets that support stack protectors
will convert this to an integer atomicrmw xchg in AtomicExpand, so
there is no issue in practice. We still should handle it correctly
if that doesn't happen.
2025-02-27 17:03:24 +01:00

28 KiB