diff options
| author | 2019-06-23 21:36:31 +0000 | |
|---|---|---|
| committer | 2019-06-23 21:36:31 +0000 | |
| commit | 23f101f37937a1bd4a29726cab2f76e0fb038b35 (patch) | |
| tree | f7da7d6b32c2e07114da399150bfa88d72187012 /gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp | |
| parent | sort previous; ok deraadt (diff) | |
| download | wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.tar.xz wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.zip | |
Import LLVM 8.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp b/gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp index a5d2d1d2472..592e8572c77 100644 --- a/gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp +++ b/gnu/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); |
