[clang] [clang-tools-extra] [codegen] Emit cleanups for lifetime-extended temporaries when an expr contains control-flow (PR #80698)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 6 12:24:46 PST 2024


================
@@ -628,7 +628,7 @@ CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) {
 
   // Create, but don't insert, the new block.
   Dest = JumpDest(createBasicBlock(D->getName()),
-                  EHScopeStack::stable_iterator::invalid(),
+                  EHScopeStack::stable_iterator::invalid(), 0,
----------------
efriedma-quic wrote:

"0" seems wrong; goto out of a StmtExpr is legal, the same way "break" is legal.  But I guess we can't actually compute the correct number here; maybe we need to do something with BranchFixups?

https://github.com/llvm/llvm-project/pull/80698


More information about the cfe-commits mailing list