[clang] [LifetimeSafety] Implement a basic use-after-free diagnostic (PR #149731)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 31 09:40:56 PDT 2025


================
@@ -66,6 +88,7 @@ using OriginID = ID<struct OriginTag>;
 // TODO(opt): Consider using a bitset to represent the set of loans.
 using LoanSet = llvm::ImmutableSet<LoanID>;
 using OriginSet = llvm::ImmutableSet<OriginID>;
+using ExpiredLoanMap = llvm::ImmutableMap<LoanID, const Fact *>;
----------------
ymand wrote:

Maybe comment? including -- what kind of facts do we expect as values?

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


More information about the cfe-commits mailing list