[clang] [LifetimeSafety] Count escape facts when classifying persistent origins (PR #204485)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 18 03:21:22 PDT 2026


Xazax-hun wrote:

So it looks like the global case was silent because there is no expression at the end of the function (where we check for the escapes) that would mention the global's origin. On the other hand, with returns and looks, we usually mention the variable that is being escaped, so there will be a DeclRefExpr or similar that helps classifying the origin as persistent. 

Do you want me to remove the test cases that are silent at head?

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


More information about the cfe-commits mailing list