diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
commit | 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (patch) | |
tree | 02a1ac369cb734d0abfa5000dd86e5b7797e6a74 /lib/Tooling/ASTDiff/ASTDiff.cpp | |
parent | c7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (diff) |
Diffstat (limited to 'lib/Tooling/ASTDiff/ASTDiff.cpp')
-rw-r--r-- | lib/Tooling/ASTDiff/ASTDiff.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Tooling/ASTDiff/ASTDiff.cpp b/lib/Tooling/ASTDiff/ASTDiff.cpp index a5d2d1d247299..592e8572c7705 100644 --- a/lib/Tooling/ASTDiff/ASTDiff.cpp +++ b/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); |