[clang] [LifetimeSafety] Detect use of a reference type as a use of underlying origin (PR #184295)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 30 11:53:15 PDT 2026


================
@@ -234,7 +234,7 @@ class GlobalEscapeFact : public OriginEscapesFact {
 
 class UseFact : public Fact {
   const Expr *UseExpr;
-  const OriginList *OList;
+  std::variant<const OriginList *, OriginID> Origins;
----------------
usx95 wrote:

Can you please add a comment describing the scenarios here.

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


More information about the cfe-commits mailing list