[llvm] r302806 - Fix -DLLVM_ENABLE_THREADS=OFF build after r302748
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Thu May 11 08:32:48 PDT 2017
Author: hans
Date: Thu May 11 10:32:47 2017
New Revision: 302806
URL: http://llvm.org/viewvc/llvm-project?rev=302806&view=rev
Log:
Fix -DLLVM_ENABLE_THREADS=OFF build after r302748
Modified:
llvm/trunk/lib/Support/Parallel.cpp
Modified: llvm/trunk/lib/Support/Parallel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Parallel.cpp?rev=302806&r1=302805&r2=302806&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Parallel.cpp (original)
+++ llvm/trunk/lib/Support/Parallel.cpp Thu May 11 10:32:47 2017
@@ -127,6 +127,7 @@ Executor *Executor::getDefaultExecutor()
#endif
}
+#if LLVM_ENABLE_THREADS
void parallel::detail::TaskGroup::spawn(std::function<void()> F) {
L.inc();
Executor::getDefaultExecutor()->add([&, F] {
@@ -134,3 +135,4 @@ void parallel::detail::TaskGroup::spawn(
L.dec();
});
}
+#endif
More information about the llvm-commits
mailing list