[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Added a check for the specialization existence (PR #154123)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 8 05:25:11 PDT 2025
================
@@ -1676,6 +1676,13 @@ TypeSystemClang::CreateClassTemplateSpecializationDecl(
class_template_specialization_decl->setInstantiationOf(class_template_decl);
class_template_specialization_decl->setTemplateArgs(
TemplateArgumentList::CreateCopy(ast, args));
+ // Specialization exists, so return nullptr.
+ void *InsertPos = nullptr;
+ if (class_template_decl->findSpecialization(args, InsertPos))
+ return nullptr;
+ // Add this specialization to the class template.
----------------
tgs-sc wrote:
Addressed
https://github.com/llvm/llvm-project/pull/154123
More information about the lldb-commits
mailing list