[clang] [Clang] Fix various bugs in alias CTAD transform (PR #132061)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 20 01:05:05 PDT 2025


================
@@ -1467,10 +1477,16 @@ namespace {
       }
     }
 
-    static TemplateArgument
+    bool HeuristicallyComputeSizeOfPackExpr() const {
+      return !TemplateArgs.isRewrite();
+    }
+
+    TemplateArgument
----------------
zyn0217 wrote:

It is intended because we need to access `SemaRef.ArgumentPackSubstitutionIndex`

https://github.com/llvm/llvm-project/pull/132061


More information about the cfe-commits mailing list