[all-commits] [llvm/llvm-project] 258fc7: [Clang] Fix -ast-dump-decl-types crashes on concep...
ofAlpaca via All-commits
all-commits at lists.llvm.org
Wed Sep 18 17:34:00 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 258fc7f582877d3bc2a26e62da4f50e467d8c640
https://github.com/llvm/llvm-project/commit/258fc7f582877d3bc2a26e62da4f50e467d8c640
Author: ofAlpaca <frank70199 at gmail.com>
Date: 2024-09-19 (Thu, 19 Sep 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Frontend/ASTConsumers.cpp
M clang/test/AST/ast-dump-concepts.cpp
Log Message:
-----------
[Clang] Fix -ast-dump-decl-types crashes on concepts (#108142)
Resolve #94928
This PR adds `if (TD->getTemplateDecl())` to prevent `InnerD` becoming
`nullptr`, suggested by @firstmoonlight.
I also add `-ast-dump-decl-types` option and declare type `CHECK` to the
testcase `clang/test/AST/ast-dump-concepts.cpp`.
---------
Co-authored-by: Aaron Ballman <aaron at aaronballman.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list