Skip to content

Commit 24c782e

Browse files
[clang] Use llvm::partition_point (NFC) (#141351)
1 parent 1f3b6d8 commit 24c782e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/lib/Sema/SemaType.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ namespace {
324324

325325
// FIXME: This is quadratic if we have lots of reuses of the same
326326
// attributed type.
327-
for (auto It = std::partition_point(
328-
AttrsForTypes.begin(), AttrsForTypes.end(),
327+
for (auto It = llvm::partition_point(
328+
AttrsForTypes,
329329
[=](const TypeAttrPair &A) { return A.first < AT; });
330330
It != AttrsForTypes.end() && It->first == AT; ++It) {
331331
if (It->second) {

clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ void PlistDiagnostics::printBugPath(llvm::raw_ostream &o, const FIDMap &FM,
574574
}) &&
575575
"PathDiagnostic is not partitioned so that notes precede the rest");
576576

577-
PathPieces::const_iterator FirstNonNote = std::partition_point(
578-
Path.begin(), Path.end(), [](const PathDiagnosticPieceRef &E) {
577+
PathPieces::const_iterator FirstNonNote =
578+
llvm::partition_point(Path, [](const PathDiagnosticPieceRef &E) {
579579
return E->getKind() == PathDiagnosticPiece::Note;
580580
});
581581

0 commit comments

Comments
 (0)