================
@@ -1796,16 +1796,21 @@ bool tools::addSanitizerRuntimes(const ToolChain &TC, 
const ArgList &Args,
     CmdArgs.push_back("--export-dynamic-symbol=__cfi_check");
 
   if (SanArgs.hasMemTag()) {
-    if (!TC.getTriple().isAndroid()) {
+    if (TC.getTriple().isWasm()) {
+    }
+    else if (TC.getTriple().isAndroid()) {
+      CmdArgs.push_back(
+          Args.MakeArgString("--android-memtag-mode=" + 
SanArgs.getMemtagMode()));
+      if (SanArgs.hasMemtagHeap())
+        CmdArgs.push_back("--android-memtag-heap");
+      if (SanArgs.hasMemtagStack())
+        CmdArgs.push_back("--android-memtag-stack");
+    }
+    else
+    {
----------------
sbc100 wrote:

LLVM style puts the curly braces on the same line as the else keyword.

https://github.com/llvm/llvm-project/pull/162972
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to