From: Renato Golin Date: Wed, 5 Aug 2015 18:42:41 +0000 (+0000) Subject: [AArch64] Enable thread sanitizer on clang X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27c06fc409e4a3fc6c42c515612fc395e4e8e092;p=clang [AArch64] Enable thread sanitizer on clang With this option, clang can use -fsanitize=thread on AArch64. Patch by Adhemerval Zanella. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244091 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 8defd5b7e4..1e27d0a2df 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -3626,10 +3626,10 @@ SanitizerMask Linux::getSupportedSanitizers() const { 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) {