[all-commits] [llvm/llvm-project] 869d16: [clang][ASTImporter] Fix crash when import `VarTem...
Qizhi Hu via All-commits
all-commits at lists.llvm.org
Fri Oct 6 18:36:17 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 869d1680edb0cc264f01fc6e59f0a1b93330c6da
https://github.com/llvm/llvm-project/commit/869d1680edb0cc264f01fc6e59f0a1b93330c6da
Author: Qizhi Hu <836744285 at qq.com>
Date: 2023-10-07 (Sat, 07 Oct 2023)
Changed paths:
M clang/lib/AST/ASTImporter.cpp
M clang/unittests/AST/ASTImporterTest.cpp
Log Message:
-----------
[clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record (#67522)
[clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record
static VarTemplateDecl in record isn't a definition, when imported
before, it will crash in `ASTContext::setTemplateOrSpecializationInfo`
due to setting specialization while it already exists. This patch skip
this specific case.
Co-authored-by: huqizhi <836744285 at qq.com>
More information about the All-commits
mailing list