llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-static-analyzer-1 Author: Kazu Hirata (kazutakahirata) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/141351.diff 2 Files Affected: - (modified) clang/lib/Sema/SemaType.cpp (+2-2) - (modified) clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp (+2-2) ``````````diff diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index 874e41ac0b90c..49d10f5502084 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/lib/Sema/SemaType.cpp @@ -324,8 +324,8 @@ namespace { // FIXME: This is quadratic if we have lots of reuses of the same // attributed type. - for (auto It = std::partition_point( - AttrsForTypes.begin(), AttrsForTypes.end(), + for (auto It = llvm::partition_point( + AttrsForTypes, [=](const TypeAttrPair &A) { return A.first < AT; }); It != AttrsForTypes.end() && It->first == AT; ++It) { if (It->second) { diff --git a/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp index 2ab248f9aa6d9..6715ab2f30b3a 100644 --- a/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp @@ -574,8 +574,8 @@ void PlistDiagnostics::printBugPath(llvm::raw_ostream &o, const FIDMap &FM, }) && "PathDiagnostic is not partitioned so that notes precede the rest"); - PathPieces::const_iterator FirstNonNote = std::partition_point( - Path.begin(), Path.end(), [](const PathDiagnosticPieceRef &E) { + PathPieces::const_iterator FirstNonNote = + llvm::partition_point(Path, [](const PathDiagnosticPieceRef &E) { return E->getKind() == PathDiagnosticPiece::Note; }); `````````` </details> https://github.com/llvm/llvm-project/pull/141351 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits