summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/clangd/index/Background.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/index/Background.h b/clang-tools-extra/clangd/index/Background.h
index 6fbec04906a..99785f31a12 100644
--- a/clang-tools-extra/clangd/index/Background.h
+++ b/clang-tools-extra/clangd/index/Background.h
@@ -65,8 +65,7 @@ class BackgroundQueue {
public:
/// A work item on the thread pool's queue.
struct Task {
- template <typename Func>
- explicit Task(Func &&F) : Run(std::forward<Func>(F)){}
+ explicit Task(std::function<void()> Run) : Run(std::move(Run)) {}
std::function<void()> Run;
llvm::ThreadPriority ThreadPri = llvm::ThreadPriority::Background;
OpenPOWER on IntegriCloud