[compiler-rt builtins] Assert that atomic.c can be compiled correctly.
authorEli Friedman <efriedma@quicinc.com>
Mon, 16 May 2022 21:40:57 +0000 (14:40 -0700)
committerEli Friedman <efriedma@quicinc.com>
Mon, 16 May 2022 21:40:57 +0000 (14:40 -0700)
commitdd20323f51b676bd0f13c82dc1587e8afcdd527a
treeded64f586a7268c97cb6a7691f031eade06d2ec4
parentee8aa351e43f27e1dd4240560a3e054ca045186f
[compiler-rt builtins] Assert that atomic.c can be compiled correctly.

The spinlock requires that lock-free operations are available;
otherwise, the implementation just calls itself. As discussed in
D120026.

Differential Revision: https://reviews.llvm.org/D123080
compiler-rt/lib/builtins/atomic.c