mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ASan allows to catch and diagnose memory corruption errors, which are possible when using unsafe pointers. This patch introduces a new driver/frontend option -sanitize=address to enable ASan. When option is passed in, the ASan llvm passes will be turned on and all functions will gain SanitizeAddress llvm attribute.
48 KiB
48 KiB