From a8f1790fdb8ce1c53f024870cd51f32724d4c55f Mon Sep 17 00:00:00 2001 From: Eduardo Caldas Date: Fri, 9 Oct 2020 16:34:01 +0000 Subject: [PATCH] [SyntaxTree] Fix rtti for `Expression`. Differential Revision: https://reviews.llvm.org/D89146 --- clang/include/clang/Tooling/Syntax/Nodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/Tooling/Syntax/Nodes.h b/clang/include/clang/Tooling/Syntax/Nodes.h index ed4449adb0f0..33ed2ec5c349 100644 --- a/clang/include/clang/Tooling/Syntax/Nodes.h +++ b/clang/include/clang/Tooling/Syntax/Nodes.h @@ -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; } };