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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/tsan/rtl/tsan_interceptors_mac.cc | ||
---|---|---|
126 ↗ | (On Diff #66471) | This is now bit rather than bit_index. |