diff options
| author | Alan Somers <asomers@FreeBSD.org> | 2019-03-18 19:21:53 +0000 |
|---|---|---|
| committer | Alan Somers <asomers@FreeBSD.org> | 2019-03-18 19:21:53 +0000 |
| commit | 2aaf9152a852aba9eb2036b95f4948ee77988826 (patch) | |
| tree | 781adde8ab935d2d461957def4129f258469f38a /contrib/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp | |
| parent | 93d9f5818a030465801a30af7f0f40e2b9ed0d00 (diff) | |
| parent | d6369c2d18afbf23d8fa0038d2974cab7f82a976 (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp')
| -rw-r--r-- | contrib/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp b/contrib/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp index a5d2d1d247299..592e8572c7705 100644 --- a/contrib/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp +++ b/contrib/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp @@ -741,7 +741,7 @@ public: List.pop(); } // TODO this is here to get a stable output, not a good heuristic - llvm::sort(Result.begin(), Result.end()); + llvm::sort(Result); return Result; } int peekMax() const { @@ -845,9 +845,8 @@ void ASTDiff::Impl::matchBottomUp(Mapping &M) const { } bool Matched = M.hasSrc(Id1); const Node &N1 = T1.getNode(Id1); - bool MatchedChildren = - std::any_of(N1.Children.begin(), N1.Children.end(), - [&](NodeId Child) { return M.hasSrc(Child); }); + bool MatchedChildren = llvm::any_of( + N1.Children, [&](NodeId Child) { return M.hasSrc(Child); }); if (Matched || !MatchedChildren) continue; NodeId Id2 = findCandidate(M, Id1); |
