[clang] [LifetimeSafety] Overhaul CFG and analysis to also work with trivially destructed temporary objects (PR #177985)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 15 10:21:38 PST 2026


================
@@ -5265,14 +5303,13 @@ CFGBlock *CFGBuilder::VisitCXXBindTemporaryExprForTemporaryDtors(
       Context.setDecisionPoint(Succ, E);
     }
     appendTemporaryDtor(Block, E);
-
-    B = Block;
+    return B;
----------------
Xazax-hun wrote:

What is the reason for this change?

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


More information about the cfe-commits mailing list