[PATCH] D89146: [SyntaxTree] Fix rtti for `Expression`.

Eduardo Caldas via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 9 10:08:11 PDT 2020


eduucaldas created this revision.
eduucaldas added a reviewer: gribozavr2.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
eduucaldas requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89146

Files:
  clang/include/clang/Tooling/Syntax/Nodes.h


Index: clang/include/clang/Tooling/Syntax/Nodes.h
===================================================================
--- clang/include/clang/Tooling/Syntax/Nodes.h
+++ clang/include/clang/Tooling/Syntax/Nodes.h
@@ -206,7 +206,7 @@
   Expression(NodeKind K) : Tree(K) {}
   static bool classof(const Node *N) {
     return NodeKind::UnknownExpression <= N->getKind() &&
-           N->getKind() <= NodeKind::UnknownExpression;
+           N->getKind() <= NodeKind::CallExpression;
   }
 };
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89146.297272.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201009/228222b7/attachment.bin>


More information about the cfe-commits mailing list