[all-commits] [llvm/llvm-project] 7fb606: [Clang] Fix a crash when using ast-dump=json (#70224)
elizabethandrews via All-commits
all-commits at lists.llvm.org
Mon Nov 13 13:39:53 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7fb606e9feb9a4f23acf96ccf73ae676ca883828
https://github.com/llvm/llvm-project/commit/7fb606e9feb9a4f23acf96ccf73ae676ca883828
Author: elizabethandrews <elizabeth.andrews at intel.com>
Date: 2023-11-13 (Mon, 13 Nov 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/AST/JSONNodeDumper.cpp
M clang/test/AST/ast-dump-template-decls-json.cpp
Log Message:
-----------
[Clang] Fix a crash when using ast-dump=json (#70224)
CXXDeductionGuideDecl inherits from FunctionDecl. For FunctionDecls,
the JSONVisitor includes a call to visit NamedDecl in order to provide
mangled names in the dump. This did not correctly exclude
CXXDeductionGuideDecl, which resulted in an assert being hit.
More information about the All-commits
mailing list