[clang] [LifetimeSafety] resolved lifetimeBound violation in constructor (PR #204797)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 19 04:39:35 PDT 2026
================
@@ -135,7 +135,10 @@ class LifetimeChecker {
return;
if (PVD->hasAttr<LifetimeBoundAttr>()) {
// Track that this lifetimebound parameter correctly escapes.
- if (isa<ReturnEscapeFact>(OEF))
+ bool isVerifiedEscape =
----------------
Xazax-hun wrote:
Nit: I think this intermediate bool might not add too much value, feel free to inline it to the if statement below.
https://github.com/llvm/llvm-project/pull/204797
More information about the cfe-commits
mailing list