[PATCH] D41795: [analyzer] Inline destructors for non-array deletes.

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 17:24:12 PST 2018


NoQ added inline comments.


================
Comment at: lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp:692-693
+      if (const Stmt *DtorExpr = Dtor.getOriginExpr())
+        if (const Stmt *ParentExpr =
+                CurLC->getParentMap().getParent(DtorExpr))
+          if (const CXXDeleteExpr *DeleteExpr =
----------------
I hope i'd be able to get rid of this `ParentMap` call - once i update D40560 as discussed there and rebase.


Repository:
  rC Clang

https://reviews.llvm.org/D41795





More information about the cfe-commits mailing list