[clang] [clang-tools-extra] [Clang] Add a builtin that deduplicate types into a pack (PR #106730)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 11 10:47:39 PDT 2025
================
@@ -935,15 +938,18 @@ class PackDeductionScope {
S.collectUnexpandedParameterPacks(Pattern, Unexpanded);
for (unsigned I = 0, N = Unexpanded.size(); I != N; ++I) {
unsigned Depth, Index;
- std::tie(Depth, Index) = getDepthAndIndex(Unexpanded[I]);
+ if (auto DI = getDepthAndIndex(Unexpanded[I])) {
+ std::tie(Depth, Index) = *DI;
+ } else {
+ continue;
+ }
----------------
ilya-biryukov wrote:
Done.
https://github.com/llvm/llvm-project/pull/106730
More information about the cfe-commits
mailing list