[clang] [Clang][Sema] Avoid pack expansion for expanded empty PackIndexingExprs (PR #92385)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Fri May 17 01:05:03 PDT 2024


================
@@ -4377,15 +4377,20 @@ class PackIndexingExpr final
   // The pack being indexed, followed by the index
   Stmt *SubExprs[2];
 
-  size_t TransformedExpressions;
+  // The size of the trailing expressions.
+  unsigned TransformedExpressions : 31;
----------------
zyn0217 wrote:

I changed it to `unsigned` because `numTrailingObjects` is designed to return an `unsigned` number.

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


More information about the cfe-commits mailing list