[clang] [clang-tools-extra] [llvm] [WebAssembly][Sanitizer] WebAssembly Memory Tagging (PR #162972)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 23 08:15:34 PST 2026


================
@@ -787,10 +787,21 @@ void AsmPrinter::emitGlobalVariable(const GlobalVariable *GV) {
   if (GV->isTagged()) {
     Triple T = TM.getTargetTriple();
 
-    if (T.getArch() != Triple::aarch64 || !T.isAndroid())
+    auto arch = T.getArch();
+
+    bool supportMemtagGlobals = false;
+
+    if (T.isWasm()) {
----------------
sbc100 wrote:

Should this be wasm64 only?

https://github.com/llvm/llvm-project/pull/162972


More information about the llvm-commits mailing list