summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/index/dex/Iterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/index/dex/Iterator.cpp')
-rw-r--r--clang-tools-extra/clangd/index/dex/Iterator.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang-tools-extra/clangd/index/dex/Iterator.cpp b/clang-tools-extra/clangd/index/dex/Iterator.cpp
index 5155827f6f4..d1ad72f5530 100644
--- a/clang-tools-extra/clangd/index/dex/Iterator.cpp
+++ b/clang-tools-extra/clangd/index/dex/Iterator.cpp
@@ -40,11 +40,10 @@ public:
// highest element starting from the front. When child iterators in the
// beginning have smaller estimated size, the sync() will have less restarts
// and become more effective.
- std::sort(begin(Children), end(Children),
- [](const std::unique_ptr<Iterator> &LHS,
- const std::unique_ptr<Iterator> &RHS) {
- return LHS->estimateSize() < RHS->estimateSize();
- });
+ llvm::sort(Children, [](const std::unique_ptr<Iterator> &LHS,
+ const std::unique_ptr<Iterator> &RHS) {
+ return LHS->estimateSize() < RHS->estimateSize();
+ });
}
bool reachedEnd() const override { return ReachedEnd; }
OpenPOWER on IntegriCloud