================
@@ -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;
----------------
erichkeane wrote:

Perhaps extract a 'helper' function for it?  But yeah, I still don't 
particualrly get what is going on.

https://github.com/llvm/llvm-project/pull/200185
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to