- if let Some(ref sanitizer) = cx.tcx.sess.opts.debugging_opts.sanitizer {
- match *sanitizer {
- Sanitizer::Address => {
- llvm::Attribute::SanitizeAddress.apply_llfn(Function, llfn);
- },
- Sanitizer::Memory => {
- llvm::Attribute::SanitizeMemory.apply_llfn(Function, llfn);
- },
- Sanitizer::Thread => {
- llvm::Attribute::SanitizeThread.apply_llfn(Function, llfn);
- },
- _ => {}
- }
- }
-