xazax.hun added inline comments. ================ Comment at: test/Analysis/NewDelete-checker-test.cpp:394 @@ +393,3 @@ + Derived *p = (Derived *)allocate(); + delete p; +} ---------------- Before the modification the analyzer reports a leak here, since the symbol returned by the BaseToDerived cast is independent of the original symbol.
https://reviews.llvm.org/D23014 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits