NoQ added inline comments.

================
Comment at: clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp:111
+    QualType Ty = CE->getCallReturnType(C.getASTContext());
+    V = C.getSValBuilder().makeTruthVal(true, Ty);
+  }
----------------
Charusso wrote:
> That is a very lame way to conjure a symbol, but with a cool wrapper I 
> believe this would be okay. Do we have a better way to create a non-null 
> symbol?
This creates a concrete `1` rather than a symbol. That's the right behavior for 
`isa`, but it's not the right behavior for `getAs`. In case of `getAs` we need 
to return our `this`.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65889/new/

https://reviews.llvm.org/D65889



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

Reply via email to