================
@@ -13589,9 +13577,10 @@ QualType Sema::deduceVarTypeFromInitializer(VarDecl 
*VDecl,
                                                        InitsCopy);
   }
 
+  SmallVector<Expr *, 8> ExpandedInits;
   if (DirectInit) {
     if (auto *IL = dyn_cast<InitListExpr>(Init))
-      DeduceInits = IL->inits();
+      DeduceInits = getInitsWithEmbedExpanded(IL, ExpandedInits);
----------------
efriedma-quic wrote:

I don't think we actually need to expand here? We print an error if DeduceInits 
doesn't contain exactly one element.

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

Reply via email to