[clang] [clang] Implement lifetime analysis for lifetime_capture_by(X) (PR #115921)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 15 06:24:54 PST 2024
================
@@ -1420,9 +1446,18 @@ static void checkExprLifetimeImpl(Sema &SemaRef,
? IndirectLocalPathEntry::LifetimeBoundCall
: IndirectLocalPathEntry::GslPointerAssignment,
Init});
+ } else if (LK == LK_LifetimeCapture) {
----------------
usx95 wrote:
You might not be looking at the latest changes. This was switched to a switch :)
https://github.com/llvm/llvm-project/pull/115921
More information about the cfe-commits
mailing list