commit | 79f204e06c8b787091e2d279d5f3452dfebfdd21 | [log] [tgz] |
---|---|---|
author | Kuba Brecka <kuba.brecka@gmail.com> | Tue Aug 02 14:30:52 2016 +0000 |
committer | Kuba Brecka <jbrecka@apple.com> | Wed Aug 03 19:40:26 2016 +0200 |
tree | 52d152af06670d9237dc90cff9f58094192443f8 | |
parent | 9b5c3110ff8d6c1ce3de24970ec991547b6783ea [diff] |
[tsan] Fix the behavior of OSAtomicTestAndClear The system implementation of OSAtomicTestAndClear returns the original bit, but the TSan interceptor has a bug which always returns zero from the function. This patch fixes this and adds a test. Differential Revision: https://reviews.llvm.org/D23061 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@277461 91177308-0d34-0410-b5e6-96231b3b80d8