OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
514e3c3
)
Compare traversal for memoization before bound nodes container
author
Stephen Kelly
<steveire@gmail.com>
Sun, 19 Jan 2020 15:37:24 +0000
(15:37 +0000)
committer
Stephen Kelly
<steveire@gmail.com>
Mon, 20 Jan 2020 11:20:04 +0000
(11:20 +0000)
clang/lib/ASTMatchers/ASTMatchFinder.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/ASTMatchers/ASTMatchFinder.cpp
b/clang/lib/ASTMatchers/ASTMatchFinder.cpp
index
0d1f713
..
39a3d8e
100644
(file)
--- a/
clang/lib/ASTMatchers/ASTMatchFinder.cpp
+++ b/
clang/lib/ASTMatchers/ASTMatchFinder.cpp
@@
-62,9
+62,9
@@
struct MatchKey {
ast_type_traits::TraversalKind Traversal = ast_type_traits::TK_AsIs;
bool operator<(const MatchKey &Other) const {
- return std::tie(
MatcherID, Node, BoundNodes, Traversal
) <
- std::tie(Other.
MatcherID, Other.Node, Other.BoundNodes
,
-
Other.Traversal
);
+ return std::tie(
Traversal, MatcherID, Node, BoundNodes
) <
+ std::tie(Other.
Traversal, Other.MatcherID, Other.Node
,
+
Other.BoundNodes
);
}
};