================
@@ -6160,12 +6160,9 @@ 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() &&
-        EmitLifetimeStart(DeclPtr.getBasePointer()))
-      pushCleanupAfterFullExpr<CallLifetimeEnd>(NormalEHLifetimeMarker,
-                                                DeclPtr);
-  }
+  if (!getLangOpts().CPlusPlus && HaveInsertPoint() &&
+      !Bypasses.IsBypassed(E) && EmitLifetimeStart(DeclPtr.getBasePointer()))
----------------
nickdesaulniers wrote:

Yeah, sorry, I wasn't certain about the test case `test_forward_goto_bypass` 
and got that case wrong, initially. Should be fixed up now.

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

Reply via email to