Really unbreak Mac build.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 7 Aug 2013 23:41:13 +0000 (23:41 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 7 Aug 2013 23:41:13 +0000 (23:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187938 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Instrumentation.h

index 9befe58..ecc470b 100644 (file)
@@ -92,7 +92,7 @@ FunctionPass *createThreadSanitizerPass(StringRef BlacklistFile = StringRef());
 ModulePass *createDataFlowSanitizerPass(void *(*getArgTLS)() = 0,
                                         void *(*getRetValTLS)() = 0);
 
 ModulePass *createDataFlowSanitizerPass(void *(*getArgTLS)() = 0,
                                         void *(*getRetValTLS)() = 0);
 
-#ifdef __GNUC__
+#if defined(__GNUC__) && defined(__linux__)
 inline ModulePass *createDataFlowSanitizerPassForJIT() {
   return createDataFlowSanitizerPass(getDFSanArgTLSPtrForJIT,
                                      getDFSanRetValTLSPtrForJIT);
 inline ModulePass *createDataFlowSanitizerPassForJIT() {
   return createDataFlowSanitizerPass(getDFSanArgTLSPtrForJIT,
                                      getDFSanRetValTLSPtrForJIT);