[clang] Fix cycle in importing template specialization on auto type with typename (PR #162514)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 10 19:05:52 PDT 2025
================
@@ -4058,7 +4059,13 @@ ExpectedDecl ASTNodeImporter::VisitFunctionDecl(FunctionDecl *D) {
}
Error Err = Error::success();
+ if (!UsedDifferentProtoType) {
+ Importer.DeclTypeCycles.insert(D);
----------------
shafik wrote:
This make sense, that is why we have destructors so we don't have to manually manage these things.
https://github.com/llvm/llvm-project/pull/162514
More information about the cfe-commits
mailing list