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

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Mon May 20 08:16:04 PDT 2024


================
@@ -2157,11 +2157,11 @@ void ASTStmtWriter::VisitSizeOfPackExpr(SizeOfPackExpr *E) {
 void ASTStmtWriter::VisitPackIndexingExpr(PackIndexingExpr *E) {
   VisitExpr(E);
   Record.push_back(E->TransformedExpressions);
+  Record.push_back(E->EmptyPack);
   Record.AddSourceLocation(E->getEllipsisLoc());
   Record.AddSourceLocation(E->getRSquareLoc());
   Record.AddStmt(E->getPackIdExpression());
   Record.AddStmt(E->getIndexExpr());
-  Record.push_back(E->TransformedExpressions);
----------------
zyn0217 wrote:

(And I didn't receive any notification from GH for this comment... sorry, I just saw it.)

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


More information about the cfe-commits mailing list