[clang] [LifetimeSafety] Detect use-after-return (PR #165370)
Kashika Akhouri via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 14 05:21:33 PST 2025
================
@@ -93,6 +93,9 @@ class FactsGenerator : public ConstStmtVisitor<FactsGenerator> {
FactManager &FactMgr;
AnalysisDeclContext &AC;
llvm::SmallVector<Fact *> CurrentBlockFacts;
+ // Collect origins that escape the function in this block (OriginEscapesFact),
+ // appended at the end to ensure they appear after ExpireFact entries.
----------------
kashika0112 wrote:
Have moved the comment about the ordering to where the append actually happens ( inside `FactsGenerator::run()`).
https://github.com/llvm/llvm-project/pull/165370
More information about the cfe-commits
mailing list