[clang] [LifetimeSafety] Add bailout for large CFGs (PR #170444)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 2 01:16:11 PST 2026
================
@@ -105,7 +117,10 @@ void collectLifetimeStats(AnalysisDeclContext &AC, OriginManager &OM,
void runLifetimeSafetyAnalysis(AnalysisDeclContext &AC,
LifetimeSafetyReporter *Reporter,
LifetimeSafetyStats &Stats, bool CollectStats) {
- internal::LifetimeSafetyAnalysis Analysis(AC, Reporter);
+ LifetimeSafetyOpts LSOpts;
----------------
Xazax-hun wrote:
I wonder if we actually need `LifetimeSafetyOpts` at all. Since we already pass in `AnalysisDeclContext`, we could just get the language options inside `LifetimeSafetyAnalysis`.
https://github.com/llvm/llvm-project/pull/170444
More information about the cfe-commits
mailing list