[clang] [LifetimeSafety] Add support for `new`/`delete` (PR #192504)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 19 10:48:38 PDT 2026
================
@@ -28,6 +28,10 @@ void AccessPath::dump(llvm::raw_ostream &OS) const {
case Kind::PlaceholderThis:
OS << "$this";
break;
+ case Kind::NewAllocation:
+ if (const auto *E = getAsHeapAllocation())
----------------
usx95 wrote:
s/getAsHeapAllocation/getAsNewAllocation
https://github.com/llvm/llvm-project/pull/192504
More information about the cfe-commits
mailing list