[clang] [LifetimeSafety] Revamp how accesses and uses are handled (PR #225799)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 24 06:04:54 PDT 2026


================
@@ -53,6 +53,10 @@ struct Origin {
   /// Null for synthetic lvalue origins (e.g., outer origin of DeclRefExpr).
   const Type *Ty;
 
+  /// True if this origin only holds a loan to a declaration named in scope, so
+  /// it can never hold an expired loan.
+  bool NamesDeclStorage = false;
----------------
Xazax-hun wrote:

Yeah, that is the idea. Added the comment. 

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


More information about the cfe-commits mailing list