================
@@ -685,9 +685,22 @@ class TransferVisitor : public 
ConstStmtVisitor<TransferVisitor> {
 
     // `S->inits()` contains all the initializer expressions, including the
     // ones for direct base classes.
-    auto Inits = S->inits();
+    ArrayRef<Expr *> Inits = S->inits();
     size_t InitIdx = 0;
 
+    // Unions initialized with an empty initializer list need special 
treatment.
----------------
Xazax-hun wrote:

I am wondering how does CodeGen deal with this? If it happens to have similar 
extra logic, we could simplify both by changing the AST. 

https://github.com/llvm/llvm-project/pull/82986
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to