[Objective-C][TSan] Do not emit fused ARC calls under TSan at -O0 to detect races on __strong refs (#235150)
At -O0, Clang normally emits fused @llvm.objc.storeStrong calls for
__strong assignments instead of expanding them into retain, load, store,
and release (which it does at -O1 and above). Because TSan does not
instrument @llvm.objc.storeStrong, races on __strong references were
missed at -O0.
This patch makes shouldUseFusedARCCalls() return false when TSan is
enabled so that standard TSan load/store instrumentation makes the race
detectable.
Assisted by LLMs
rdar://35283534
GitOrigin-RevId: 8a64345b184e89ac59b5064da1d6093eaa6d0523
1 file changed