================
@@ -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.
----------------
Michael137 wrote:

```suggestion
```

https://github.com/llvm/llvm-project/pull/154123
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to