================
@@ -6005,6 +6005,13 @@ LValue CodeGenFunction::EmitCompoundLiteralLValue(const
CompoundLiteralExpr *E){
const Expr *InitExpr = E->getInitializer();
LValue Result = MakeAddrLValue(DeclPtr, E->getType(), AlignmentSource::Decl);
+ if (!getLangOpts().CPlusPlus) {
+ if (HaveInsertPoint() && !hasLabelBeenSeenInCurrentScope() &&
----------------
nickdesaulniers wrote:
https://gist.github.com/nickdesaulniers/9549931cda8c969c35c866b8241708c7
https://github.com/llvm/llvm-project/pull/219045
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits