[SyntaxTree] Fix rtti for `Expression`.

Differential Revision: https://reviews.llvm.org/D89146
This commit is contained in:
Eduardo Caldas 2020-10-09 16:34:01 +00:00
parent 1c90878e60
commit a8f1790fdb
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public:
Expression(NodeKind K) : Tree(K) {}
static bool classof(const Node *N) {
return NodeKind::UnknownExpression <= N->getKind() &&
N->getKind() <= NodeKind::UnknownExpression;
N->getKind() <= NodeKind::CallExpression;
}
};