Skip to content

Commit

Permalink
[SyntaxTree] Fix rtti for Expression.
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D89146
  • Loading branch information
Eduardo Caldas committed Oct 13, 2020
1 parent 1c90878 commit a8f1790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/include/clang/Tooling/Syntax/Nodes.h
Expand Up @@ -206,7 +206,7 @@ class Expression : public Tree {
Expression(NodeKind K) : Tree(K) {}
static bool classof(const Node *N) {
return NodeKind::UnknownExpression <= N->getKind() &&
N->getKind() <= NodeKind::UnknownExpression;
N->getKind() <= NodeKind::CallExpression;
}
};

Expand Down

0 comments on commit a8f1790

Please sign in to comment.