[all-commits] [llvm/llvm-project] 27ab13: [clang][ASTImporter] Import TemplateName correctly
Balázs Kéri via All-commits
all-commits at lists.llvm.org
Fri Mar 3 00:17:30 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 27ab138c69fc61b22ef898a0f4d0f5c9bad649bd
https://github.com/llvm/llvm-project/commit/27ab138c69fc61b22ef898a0f4d0f5c9bad649bd
Author: Balázs Kéri <1.int32 at gmail.com>
Date: 2023-03-03 (Fri, 03 Mar 2023)
Changed paths:
M clang/lib/AST/ASTImporter.cpp
M clang/unittests/AST/ASTImporterTest.cpp
Log Message:
-----------
[clang][ASTImporter] Import TemplateName correctly
This is a fix for a problem when multiple template
specializations are created by ASTImporter for the
same specialization. The problem happens if a
TemplateName is imported that points to a template
delcaration (for a template template argument)
(specialization) that has multiple instances in the
declaration chain. If two TemplateName objects contain
different pointers to a template specialization,
these TemplateName objects will have different checksum
even if they point into the same declaration chain.
The problem is fixed if the canonical declaration is used.
Reviewed By: vabridgers, donat.nagy
Differential Revision: https://reviews.llvm.org/D144622
More information about the All-commits
mailing list