[PATCH] D32751: [ASTImporter] Support new kinds of declarations (mostly Using*)
Peter Szecsi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 16 06:13:46 PDT 2017
szepet added inline comments.
================
Comment at: lib/AST/ASTImporter.cpp:1464
+
+ NamespaceDecl *TargetDecl = cast<NamespaceDecl>(
+ Importer.Import(D->getNamespace()));
----------------
Since the Import can result nullptr (which is checked 2 lines below) this should be a cast_or_null as I see.
https://reviews.llvm.org/D32751
More information about the cfe-commits
mailing list