[compiler-rt] [builtin] Switch the return type of __atomic_compare_exchange_##n to...
authorKamil Rytarowski <n54@gmx.com>
Wed, 13 May 2020 12:08:39 +0000 (14:08 +0200)
committerKamil Rytarowski <n54@gmx.com>
Wed, 13 May 2020 12:09:02 +0000 (14:09 +0200)
commitf61f6ffe1126869b05a6f0b8fdee7b24c02d24f3
tree9b5f0ab6b4830f29b5cef3e2a1b0378508f4cc7b
parent881c3bb6a7323fe01f95d4e95755c78cd805056f
[compiler-rt] [builtin] Switch the return type of __atomic_compare_exchange_##n to bool

Summary:
Synchronize the function definition with the LLVM documentation.

https://llvm.org/docs/Atomics.html#libcalls-atomic

GCC also returns bool for the same atomic builtin.

Reviewers: theraven

Reviewed By: theraven

Subscribers: theraven, dberris, jfb, #sanitizers

Tags: #sanitizers

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