Compare traversal for memoization before bound nodes container

This commit is contained in:
Stephen Kelly 2020-01-19 15:37:24 +00:00
parent 514e3c3694
commit 122443a950
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
};