Skip to content

Commit 5a25854

Browse files
[clangd] Construct SmallVector with ArrayRef (NFC) (#105829)
1 parent b8f1505 commit 5a25854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/TUScheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ DebouncePolicy::compute(llvm::ArrayRef<clock::duration> History) const {
18381838
// Base the result on the median rebuild.
18391839
// nth_element needs a mutable array, take the chance to bound the data size.
18401840
History = History.take_back(15);
1841-
llvm::SmallVector<clock::duration, 15> Recent(History.begin(), History.end());
1841+
llvm::SmallVector<clock::duration, 15> Recent(History);
18421842
auto *Median = Recent.begin() + Recent.size() / 2;
18431843
std::nth_element(Recent.begin(), Median, Recent.end());
18441844

0 commit comments

Comments
 (0)