[PATCH] D11646: [sanitizers] Enable dfsan for aarch64

Adhemerval Zanella adhemerval.zanella at linaro.org
Thu Jul 30 07:45:00 PDT 2015


zatrazz created this revision.
zatrazz added reviewers: t.p.northover, rengolin, aemerson.
zatrazz added a subscriber: cfe-commits.
Herald added subscribers: rengolin, aemerson.

This patch enables DFSan for aarch64/linux.

http://reviews.llvm.org/D11646

Files:
  lib/Driver/ToolChains.cpp

Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp
+++ lib/Driver/ToolChains.cpp
@@ -3624,10 +3624,10 @@
   Res |= SanitizerKind::Address;
   Res |= SanitizerKind::KernelAddress;
   Res |= SanitizerKind::Vptr;
-  if (IsX86_64 || IsMIPS64) {
+  if (IsX86_64 || IsMIPS64 || IsAArch64)
     Res |= SanitizerKind::DataFlow;
+  if (IsX86_64 || IsMIPS64)
     Res |= SanitizerKind::Leak;
-  }
   if (IsX86_64 || IsMIPS64 || IsAArch64)
     Res |= SanitizerKind::Thread;
   if (IsX86_64 || IsMIPS64 || IsPowerPC64)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11646.31025.patch
Type: text/x-patch
Size: 588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150730/ac14c631/attachment.bin>


More information about the cfe-commits mailing list