================
@@ -5955,8 +5960,7 @@ TryListConversion(Sema &S, InitListExpr *From, QualType 
ToType,
     Result.Standard.setAsIdentityConversion();
     Result.Standard.setFromType(InitTy);
     Result.Standard.setAllToTypes(InitTy);
-    for (unsigned i = 0; i < e; ++i) {
-      Expr *Init = From->getInit(i);
+    for (Expr *Init : From->inits()) {
----------------
akash-manna-sky wrote:

No. An `EmbedExpr` is an `int` prvalue, so `TryCopyInitialization` gives it the 
same conversion sequence each of its elements would get. Only the element count 
matters here, and `e` uses the expanded count.


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