llvm.org GIT mirror llvm / 21a6645
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 Hans Wennborg 3 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
126126 #endif
127127 }
128128
129 #if LLVM_ENABLE_THREADS
129130 void parallel::detail::TaskGroup::spawn(std::function F) {
130131 L.inc();
131132 Executor::getDefaultExecutor()->add([&, F] {
133134 L.dec();
134135 });
135136 }
137 #endif