xazax.hun added a comment.

In https://reviews.llvm.org/D39711#917433, @dcoughlin wrote:

> @xazax.hun Would you be willing to take a look?


Sure, I basically agree with George.



================
Comment at: lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:587
   if (TrackedType &&
+      !isa<ExplicitCastExpr>(CE) &&
       !ASTCtxt.canAssignObjCInterfaces(DestObjectPtrType, *TrackedType) &&
----------------
george.karpenkov wrote:
> Should it check that we are actually casting to the right type? Also it's a 
> bit strange that isa<> check on line 569 did not catch this case, maybe that 
> if- branch should be generalized instead?
I agree, line 569 supposed to handle this case and also update the state 
accordingly.


https://reviews.llvm.org/D39711



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to