aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Instrumentation.h
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-08-07 23:29:46 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-08-07 23:29:46 +0000
commit32647ca140e0a654e6e9fdc98660493bee07f2ac (patch)
treef916e811f3250ec0609b6444097360e29c821a8e /include/llvm/Transforms/Instrumentation.h
parent6104a4e4cc614f5ddbde0e79c156801e21b8d0df (diff)
downloadexternal_llvm-32647ca140e0a654e6e9fdc98660493bee07f2ac.zip
external_llvm-32647ca140e0a654e6e9fdc98660493bee07f2ac.tar.gz
external_llvm-32647ca140e0a654e6e9fdc98660493bee07f2ac.tar.bz2
Unbreak Mac build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Instrumentation.h')
-rw-r--r--include/llvm/Transforms/Instrumentation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h
index a7e6cc5..9befe58 100644
--- a/include/llvm/Transforms/Instrumentation.h
+++ b/include/llvm/Transforms/Instrumentation.h
@@ -16,7 +16,7 @@
#include "llvm/ADT/StringRef.h"
-#ifdef __GNUC__
+#if defined(__GNUC__) && defined(__linux__)
inline void *getDFSanArgTLSPtrForJIT() {
extern __thread __attribute__((tls_model("initial-exec")))
void *__dfsan_arg_tls;