[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)
Kashika Akhouri via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 27 22:21:43 PST 2025
================
@@ -31,7 +31,7 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, LoanID ID) {
struct AccessPath {
const clang::ValueDecl *D;
- AccessPath(const clang::ValueDecl *D) : D(D) {}
+ AccessPath(const clang::ValueDecl *D = nullptr) : D(D) {}
----------------
kashika0112 wrote:
Is the suggestion here to include the path in the placeholder loan and add a bool flag in Loans struct, say `IsPlaceholderLoan` and explicitly stop generating ExpireFacts if the loan is a placeholder loan?
https://github.com/llvm/llvm-project/pull/169767
More information about the cfe-commits
mailing list