[llvm-branch-commits] [clang] [LifetimeSafety] Mark all DeclRefExpr as usages of the corresp. origin (PR #154316)

Gábor Horváth via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 19 06:43:23 PDT 2025


https://github.com/Xazax-hun commented:

> It is checked for use-after-free unless it is being written to.

I wonder if this is important if we end up using liveness analysis. I.e., I believe the value we are overwriting is not live. So, in case we only warn for the live usages, we get this check for free. (In case we are moving in that direction). 

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


More information about the llvm-branch-commits mailing list