[clang] a8f1790 - [SyntaxTree] Fix rtti for `Expression`.
Eduardo Caldas via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 07:48:04 PDT 2020
Author: Eduardo Caldas
Date: 2020-10-13T14:47:43Z
New Revision: a8f1790fdb8ce1c53f024870cd51f32724d4c55f
URL: https://github.com/llvm/llvm-project/commit/a8f1790fdb8ce1c53f024870cd51f32724d4c55f
DIFF: https://github.com/llvm/llvm-project/commit/a8f1790fdb8ce1c53f024870cd51f32724d4c55f.diff
LOG: [SyntaxTree] Fix rtti for `Expression`.
Differential Revision: https://reviews.llvm.org/D89146
Added:
Modified:
clang/include/clang/Tooling/Syntax/Nodes.h
Removed:
################################################################################
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 @@ 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;
}
};
More information about the cfe-commits
mailing list