[clang] [LifetimeSafety] Detect use-after-return (PR #165370)
Kashika Akhouri via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 7 00:49:27 PST 2025
================
@@ -43,7 +43,7 @@ struct LivenessInfo {
/// multiple uses along different paths, this will point to the use appearing
/// earlier in the translation unit.
/// This is 'null' when the origin is not live.
- const UseFact *CausingUseFact;
+ const Fact *CausingFact;
----------------
kashika0112 wrote:
I have refactored the code to use llvm::PointerUnion<UseFact*, OriginEscapeFact* >
https://github.com/llvm/llvm-project/pull/165370
More information about the cfe-commits
mailing list