forked from OSchip/llvm-project
[SyntaxTree] Fix rtti for `Expression`.
Differential Revision: https://reviews.llvm.org/D89146
This commit is contained in:
parent
1c90878e60
commit
a8f1790fdb
|
@ -206,7 +206,7 @@ public:
|
||||||
Expression(NodeKind K) : Tree(K) {}
|
Expression(NodeKind K) : Tree(K) {}
|
||||||
static bool classof(const Node *N) {
|
static bool classof(const Node *N) {
|
||||||
return NodeKind::UnknownExpression <= N->getKind() &&
|
return NodeKind::UnknownExpression <= N->getKind() &&
|
||||||
N->getKind() <= NodeKind::UnknownExpression;
|
N->getKind() <= NodeKind::CallExpression;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue