[llvm-branch-commits] [clang] [LifetimeSafety] Detect dangling fields (PR #177363)
Gábor Horváth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jan 22 09:49:40 PST 2026
================
@@ -1235,6 +1235,11 @@ class CFG {
bool AddEHEdges = false;
bool AddInitializers = false;
bool AddImplicitDtors = false;
+ // Add dtors for function parameters. In principle, function parameters are
+ // constructed and destructed in the caller context but analyses could still
+ // choose to include these in the callee's CFG to represent the dtors run on
+ // function exit.
+ bool AddParameterDtors = false;
----------------
Xazax-hun wrote:
Do we need the dtors? Don't we already have the lifetime end markers for parameters?
https://github.com/llvm/llvm-project/pull/177363
More information about the llvm-branch-commits
mailing list