[clang] [LifetimeSafety] Add support for `new`/`delete` (PR #192504)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 19 05:20:29 PDT 2026


================
@@ -324,6 +332,12 @@ void FactsGenerator::VisitCastExpr(const CastExpr *CE) {
   case CK_BuiltinFnToFnPtr:
     // Ignore function-to-pointer decays.
     return;
+  case CK_BitCast:
+    // Only flow if the shapes are the same (e.g. casting from int** to void*
+    // will not flow here)
----------------
usx95 wrote:

nit: full stop at the end.

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


More information about the cfe-commits mailing list