[PATCH] D62064: [ASTImporter] Fix unhandled cases in ASTImporterLookupTable

Aleksei Sidorin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 19 15:15:32 PDT 2019


a_sidorin added a comment.

Hi Gabor,
This looks fine, but I have a question inline.



================
Comment at: clang/unittests/AST/ASTImporterTest.cpp:4259
 static const RecordDecl * getRecordDeclOfFriend(FriendDecl *FD) {
   QualType Ty = FD->getFriendType()->getType();
+  if (auto *Inner = dyn_cast<TypedefType>(Ty.getTypePtr())) {
----------------
Will getCanonicalType() do the job?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D62064





More information about the cfe-commits mailing list