[clang] [clang-tools-extra] [codegen] Emit missing cleanups when an expression contains a branch (PR #80698)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 12 15:29:49 PST 2024
================
@@ -627,9 +627,11 @@ CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) {
if (Dest.isValid()) return Dest;
// Create, but don't insert, the new block.
+ // FIXME: We do not know `BranchInExprDepth` for the destination and currently
+ // emit *all* the BranchInExpr cleanups.
----------------
efriedma-quic wrote:
Can you briefly describe what you expect the fix for this to look like, if you have some idea?
https://github.com/llvm/llvm-project/pull/80698
More information about the cfe-commits
mailing list