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

Eduardo Caldas via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 12 00:05:34 PDT 2020


eduucaldas updated this revision to Diff 297502.
eduucaldas added a comment.

Rebase


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89146/new/

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.297502.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201012/77eed5d9/attachment.bin>


More information about the cfe-commits mailing list