[PATCH] D127163: [clang] Add -fsanitize=memtag-globals (no-op).

Evgenii Stepanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 7 12:24:33 PDT 2022


eugenis added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Linux.cpp:767
+  if (IsAArch64) {
+    Res |= SanitizerKind::MemtagGlobals;
+  }
----------------
Hmm why are all the other memtag* not here?


================
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:7892
 
+static bool isSanitizerThatUsesGlobals(StringRef Sanitizer) {
+  return Sanitizer == "address" || Sanitizer == "hwaddress" ||
----------------
Maybe "applies to globals"? On the other hand, MSan "applies" to globals but does not need this logic.

isSanitizerAttributeAllowedOnGlobals?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127163/new/

https://reviews.llvm.org/D127163



More information about the cfe-commits mailing list