mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Add SIL builtin for Thread Sanitizer inout accesses
...and IRGen it into a call to __tsan_write1 in compiler-rt. This is preparatory work for a later patch that will add an experimental option to treat Swift inout accesses as TSan writes.
This commit is contained in:
@@ -751,6 +751,8 @@ CONSTANT_OWNERSHIP_BUILTIN(Trivial, Assign)
|
||||
CONSTANT_OWNERSHIP_BUILTIN(Trivial, Init)
|
||||
CONSTANT_OWNERSHIP_BUILTIN(Trivial, AtomicStore)
|
||||
CONSTANT_OWNERSHIP_BUILTIN(Trivial, Once)
|
||||
CONSTANT_OWNERSHIP_BUILTIN(Trivial, TSanInoutAccess)
|
||||
|
||||
#undef CONSTANT_OWNERSHIP_BUILTIN
|
||||
|
||||
// Check all of these...
|
||||
|
||||
Reference in New Issue
Block a user