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

Abhinav Pradeep via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 16 00:39:24 PST 2026


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

This is wrong I think? It is leftover from when I was experimenting with the traversal. This does not trigger any failures in the current test suite. I will try to add something that tests this.

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


More information about the cfe-commits mailing list