[clang] [LifetimeSafety] Implement a basic use-after-free diagnostic (PR #149731)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 18 03:32:15 PDT 2025
================
@@ -851,8 +901,8 @@ struct ExpiredLattice {
OS << "ExpiredLattice State:\n";
if (Expired.isEmpty())
OS << " <empty>\n";
- for (const LoanID &LID : Expired)
- OS << " Loan " << LID << " is expired\n";
+ for (const auto &ID_ : Expired)
----------------
usx95 wrote:
It was. structured binding looks better. Thanks.
https://github.com/llvm/llvm-project/pull/149731
More information about the cfe-commits
mailing list