[cfe-commits] r58028 - in /cfe/trunk: include/clang/Analysis/PathSensitive/GRState.h include/clang/Analysis/PathSensitive/Store.h lib/Analysis/BasicStore.cpp lib/Analysis/GRExprEngine.cpp
Ted Kremenek
kremenek at apple.com
Wed Oct 22 21:07:53 PDT 2008
Looks great Zhongxing. Just one comment (inline).
On Oct 22, 2008, at 8:10 PM, Zhongxing Xu wrote:
> --- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
> +++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Wed Oct 22 22:10:39 2008
> @@ -1503,9 +1503,15 @@
> MakeNode(Dst, CastE, N, SetSVal(St, CastE, V));
> continue;
> }
> -
> +
> + // StoreManager casts array to different values.
> + if (ExTy->isArrayType()) {
Should we put an assertion here that the CastE->getType() is a pointer?
>
> + V = StateMgr.ArrayToPointer(V);
> + MakeNode(Dst, CastE, N, SetSVal(St, CastE, V));
> + continue;
> + }
> +
> // All other cases.
More information about the cfe-commits
mailing list