diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h index 9befe588e3b..ecc470bb1f8 100644 --- a/include/llvm/Transforms/Instrumentation.h +++ b/include/llvm/Transforms/Instrumentation.h @@ -92,7 +92,7 @@ FunctionPass *createThreadSanitizerPass(StringRef BlacklistFile = StringRef()); ModulePass *createDataFlowSanitizerPass(void *(*getArgTLS)() = 0, void *(*getRetValTLS)() = 0); -#ifdef __GNUC__ +#if defined(__GNUC__) && defined(__linux__) inline ModulePass *createDataFlowSanitizerPassForJIT() { return createDataFlowSanitizerPass(getDFSanArgTLSPtrForJIT, getDFSanRetValTLSPtrForJIT);