[PATCH] D94067: [clang][ASTImporter] Fix a possible assertion failure `NeedsInjectedClassNameType(Decl)'.
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 5 15:49:20 PST 2021
shafik added inline comments.
================
Comment at: clang/lib/AST/ASTImporter.cpp:2901
+ // Skip the declaration if injected type is already set.
+ if (isa<InjectedClassNameType>(RI->getTypeForDecl()))
+ continue;
----------------
Is this to fix the bug or is this for efficiency sake?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94067/new/
https://reviews.llvm.org/D94067
More information about the cfe-commits
mailing list