[PATCH] D112765: [AST] injected-class-name is not a redecl, even in template specializations
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 2 06:31:17 PDT 2021
sammccall marked 4 inline comments as done.
sammccall added inline comments.
================
Comment at: clang/lib/AST/ASTDumper.cpp:94
auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType);
- if (!Redecl) {
- // Found the injected-class-name for a class template. This will be dumped
----------------
hokein wrote:
> `assert(Redecl)`
Changed the dyn_cast to a cast instead
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112765/new/
https://reviews.llvm.org/D112765
More information about the cfe-commits
mailing list