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.
28 KiB
28 KiB