[PATCH] D56916: Fix crash due to ObjCPropertyDecl

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 21 05:38:13 PST 2019


ilya-biryukov added a comment.

@dgoldman, do you have commit access or should I land this for you?



================
Comment at: clangd/index/SymbolCollector.cpp:375
+  // not a NamedDecl.
+  const NamedDecl *OriginalDecl = dyn_cast<NamedDecl>(ASTNode.OrigD);
+  if (!OriginalDecl)
----------------
NIT: use `auto*`, the type name is spelled in the RHS anyway.


Repository:
  rCTE Clang Tools Extra

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

https://reviews.llvm.org/D56916





More information about the cfe-commits mailing list