We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8f1505 commit 5a25854Copy full SHA for 5a25854
clang-tools-extra/clangd/TUScheduler.cpp
@@ -1838,7 +1838,7 @@ DebouncePolicy::compute(llvm::ArrayRef<clock::duration> History) const {
1838
// Base the result on the median rebuild.
1839
// nth_element needs a mutable array, take the chance to bound the data size.
1840
History = History.take_back(15);
1841
- llvm::SmallVector<clock::duration, 15> Recent(History.begin(), History.end());
+ llvm::SmallVector<clock::duration, 15> Recent(History);
1842
auto *Median = Recent.begin() + Recent.size() / 2;
1843
std::nth_element(Recent.begin(), Median, Recent.end());
1844
0 commit comments