mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is preparation for a future patch adding experimental support to treat Swift-level inout accesses as Thread Sanitizer writes. That patch will extend the compiler so that additional TSan instrumentation is emitted during SILGen, rather than solely during IRGen and at the LLVM level as occurs now. This patch adds a 'Sanitize' field to SILOptions and moves parsing of 'sanitize=...' to ParseSILArgs() from ParseIRGenArgs() where it is now. The sanitizer-coverage flag remains an IRGen-level option; SILGen does not need to know about the coverage metric.
55 KiB
55 KiB