[clang] [LifeitimeSafety] Support C Language in LifetimeSafety (PR #203270)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 11 07:14:44 PDT 2026


================
@@ -106,6 +106,8 @@ void FactsGenerator::run() {
   llvm::TimeTraceScope TimeProfile("FactGenerator");
   const CFG &Cfg = *AC.getCFG();
   llvm::SmallVector<Fact *> PlaceholderLoanFacts = issuePlaceholderLoans();
+  IsCMode = !AC.getASTContext().getLangOpts().CPlusPlus &&
----------------
Xazax-hun wrote:

I wonder if this should be initialized in the ctor instead. 

https://github.com/llvm/llvm-project/pull/203270


More information about the cfe-commits mailing list