From 21a6645e6950602ff68e3ee72ae2d161f3ace15c Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Thu, 11 May 2017 15:32:47 +0000 Subject: [PATCH] Fix -DLLVM_ENABLE_THREADS=OFF build after r302748 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302806 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Parallel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Support/Parallel.cpp b/lib/Support/Parallel.cpp index c140b13d7e0..ab2cfdebf07 100644 --- a/lib/Support/Parallel.cpp +++ b/lib/Support/Parallel.cpp @@ -127,6 +127,7 @@ Executor *Executor::getDefaultExecutor() { #endif } +#if LLVM_ENABLE_THREADS void parallel::detail::TaskGroup::spawn(std::function F) { L.inc(); Executor::getDefaultExecutor()->add([&, F] { @@ -134,3 +135,4 @@ void parallel::detail::TaskGroup::spawn(std::function F) { L.dec(); }); } +#endif -- 2.50.1