NoQ added a comment.

Thanks, nice! More stuff to support.



================
Comment at: clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp:307
 
   if (CastE->getCastKind() == CK_LValueToRValue) {
     for (ExplodedNodeSet::iterator I = dstPreStmt.begin(), E = 
dstPreStmt.end();
----------------
How difficult would it be to handle the cast properly by adding it to this 
branch, except eventually passing the right type to `getSVal(R, ...)` inside 
`evalLoad()`?


================
Comment at: clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp:543
       case CK_VectorSplat: {
         state = handleLVectorSplat(state, LCtx, CastE, Bldr, Pred);
         continue;
----------------
You didn't start it but that's, ugh, not a great name for the function to 
handle the new cast.

I wouldn't mind eliminating the function entirely and inlining the 
implementation as it actually makes the code easier to read, for once.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105017

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

Reply via email to