[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:31:35 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:

(I'm okay with implementing a fix with restricted scope if you want to get something into the LLVM 18 branch.  But before we decide that, I'd like some idea of what's required to actually implement this completely.)

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


More information about the cfe-commits mailing list