about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorTri Vo <trong@google.com>2021-01-22 18:32:38 -0800
committerTri Vo <trong@google.com>2021-02-07 23:48:58 -0800
commitc7d9bffe76477a2f79c468b07e5eaf82525eea99 (patch)
treeaddcee2a27c0041b9ba694a78d84ec30d86a1e19 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent0b7a598e12649d7ab2415a82cbc3fea879fa9dab (diff)
downloadrust-c7d9bffe76477a2f79c468b07e5eaf82525eea99.tar.gz
rust-c7d9bffe76477a2f79c468b07e5eaf82525eea99.zip
HWASan support
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 4118e930745..45835990cec 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -205,6 +205,8 @@ static Attribute::AttrKind fromRust(LLVMRustAttribute Kind) {
     return Attribute::ReadNone;
   case InaccessibleMemOnly:
     return Attribute::InaccessibleMemOnly;
+  case SanitizeHWAddress:
+    return Attribute::SanitizeHWAddress;
   }
   report_fatal_error("bad AttributeKind");
 }