r244091 - [AArch64] Enable thread sanitizer on clang

Renato Golin renato.golin at linaro.org
Wed Aug 5 11:42:41 PDT 2015


Author: rengolin
Date: Wed Aug  5 13:42:41 2015
New Revision: 244091

URL: http://llvm.org/viewvc/llvm-project?rev=244091&view=rev
Log:
[AArch64] Enable thread sanitizer on clang

With this option, clang can use -fsanitize=thread on AArch64.

Patch by Adhemerval Zanella.

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=244091&r1=244090&r2=244091&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Wed Aug  5 13:42:41 2015
@@ -3626,10 +3626,10 @@ SanitizerMask Linux::getSupportedSanitiz
   Res |= SanitizerKind::Vptr;
   if (IsX86_64 || IsMIPS64 || IsAArch64)
     Res |= SanitizerKind::DataFlow;
-  if (IsX86_64 || IsMIPS64) {
+  if (IsX86_64 || IsMIPS64)
     Res |= SanitizerKind::Leak;
+  if (IsX86_64 || IsMIPS64 || IsAArch64)
     Res |= SanitizerKind::Thread;
-  }
   if (IsX86_64 || IsMIPS64 || IsPowerPC64)
     Res |= SanitizerKind::Memory;
   if (IsX86 || IsX86_64) {




More information about the cfe-commits mailing list