================
@@ -5218,7 +5218,17 @@ bool TreeTransform<Derived>::TransformTemplateArguments(
std::optional<ForgetSubstitutionRAII> ForgetSubst;
if (Info.ExpandUnderForgetSubstitions)
ForgetSubst.emplace(getDerived());
- for (unsigned I = 0; I != *Info.NumExpansions; ++I) {
+
+ unsigned Start, End;
+ if (ExpansionIndex.has_value()) {
+ Start = *ExpansionIndex;
+ End = Start + 1;
----------------
cor3ntin wrote:
I did consider a `transform template argument in parameter mapping` function...
but it would completely duplicate the function, with just that change. it
seemed like a net negative.
https://github.com/llvm/llvm-project/pull/200185
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits