summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/FileIndexRecord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Index/FileIndexRecord.cpp')
-rw-r--r--clang/lib/Index/FileIndexRecord.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Index/FileIndexRecord.cpp b/clang/lib/Index/FileIndexRecord.cpp
index dd5ad71771d..c9dcb0f5377 100644
--- a/clang/lib/Index/FileIndexRecord.cpp
+++ b/clang/lib/Index/FileIndexRecord.cpp
@@ -36,7 +36,7 @@ void FileIndexRecord::addDeclOccurence(SymbolRoleSet Roles, unsigned Offset,
DeclOccurrence NewInfo(Roles, Offset, D, Relations);
// We keep Decls in order as we need to access them in this order in all cases.
- auto It = std::upper_bound(Decls.begin(), Decls.end(), NewInfo);
+ auto It = llvm::upper_bound(Decls, NewInfo);
Decls.insert(It, std::move(NewInfo));
}
OpenPOWER on IntegriCloud