[clang] [LifetimeSafety] Add parameter lifetime tracking in CFG (PR #169320)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 25 08:53:13 PST 2025


================
@@ -5616,8 +5625,14 @@ class StmtPrinterHelper : public PrinterHelper  {
   bool handleDecl(const Decl *D, raw_ostream &OS) {
     DeclMapTy::iterator I = DeclMap.find(D);
 
-    if (I == DeclMap.end())
+    if (I == DeclMap.end()) {
+      // CFG does not have the decls for ParmVarDecl.
----------------
ymand wrote:

nit: Can you be more specific? Like

ParmVarDecls are not declared in the CFG itself, so they do not appear in DeclMap.

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


More information about the cfe-commits mailing list