about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2021-12-03 16:11:13 -0500
committerIvan Lozano <ivanlozano@google.com>2022-02-16 09:39:03 -0500
commit568aeda9e955ca2a4c043bc2ae7f854e60f6103a (patch)
tree9bf9fb4b071e057a6869945ceef6883aebf40050 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent55697574915ca58c3fcd7b1c854c1c93e002dc85 (diff)
downloadrust-568aeda9e955ca2a4c043bc2ae7f854e60f6103a.tar.gz
rust-568aeda9e955ca2a4c043bc2ae7f854e60f6103a.zip
MemTagSanitizer Support
Adds support for the LLVM MemTagSanitizer.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp2
1 files changed, 2 insertions, 0 deletions
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");
 }