From 568aeda9e955ca2a4c043bc2ae7f854e60f6103a Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Fri, 3 Dec 2021 16:11:13 -0500 Subject: MemTagSanitizer Support Adds support for the LLVM MemTagSanitizer. --- compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp') diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index fb9c5e6a527..bf2d6fb1252 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -226,6 +226,8 @@ static Attribute::AttrKind fromRust(LLVMRustAttribute Kind) { return Attribute::StackProtect; case NoUndef: return Attribute::NoUndef; + case SanitizeMemTag: + return Attribute::SanitizeMemTag; } report_fatal_error("bad AttributeKind"); } -- cgit 1.4.1-3-g733a5