================
@@ -1598,6 +1599,18 @@ BuiltinTemplateDecl::BuiltinTemplateDecl(const 
ASTContext &C, DeclContext *DC,
                    createBuiltinTemplateParameterList(C, DC, BTK)),
       BTK(BTK) {}
 
+bool BuiltinTemplateDecl::isPackProducingBuiltinTemplate() const {
+  return getBuiltinTemplateKind() == clang::BTK__builtin_dedup_pack;
+}
+
+bool clang::isPackProducingBuiltinTemplateName(TemplateName N) {
+  if (N.getKind() == TemplateName::DeducedTemplate)
+    return false;
+  auto *T = dyn_cast_or_null<BuiltinTemplateDecl>(
+      N.getTemplateDeclAndDefaultArgs().first);
+  return T && T->isPackProducingBuiltinTemplate();
----------------
ilya-biryukov wrote:

Removed this check, it is actually not necessary and sorry about the confusion 
it caused.
Will resolve this thread, but feel free to reopen if you have further questions 
about this.

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

Reply via email to