diff --git a/clang-tools-extra/clangd/TUScheduler.cpp b/clang-tools-extra/clangd/TUScheduler.cpp --- a/clang-tools-extra/clangd/TUScheduler.cpp +++ b/clang-tools-extra/clangd/TUScheduler.cpp @@ -992,7 +992,7 @@ std::shared_ptr Preamble, std::vector CIDiags, WantDiagnostics WantDiags) { - std::string TaskName = llvm::formatv("Build AST for ({0})", PI.Version); + llvm::StringLiteral TaskName = "Build AST"; // Store preamble and build diagnostics with new preamble if requested. auto Task = [this, Preamble = std::move(Preamble), CI = std::move(CI), PI = std::move(PI), CIDiags = std::move(CIDiags), @@ -1032,7 +1032,7 @@ } { std::lock_guard Lock(Mutex); - PreambleRequests.push_back({std::move(Task), std::move(TaskName), + PreambleRequests.push_back({std::move(Task), std::string(TaskName), steady_clock::now(), Context::current().clone(), llvm::None, llvm::None, TUScheduler::NoInvalidation, nullptr});