]> granicus.if.org Git - clang/commitdiff
Add an assertion to make our intention more clear.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 23 Oct 2008 04:19:25 +0000 (04:19 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 23 Oct 2008 04:19:25 +0000 (04:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58030 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 4d771fb366f93e0c90628156f9760399b83ce29f..cbda7be2cad351b51c3d388f21bcac609b329151 100644 (file)
@@ -1506,6 +1506,8 @@ void GRExprEngine::VisitCast(Expr* CastE, Expr* Ex, NodeTy* Pred, NodeSet& Dst){
 
     // StoreManager casts array to different values.
     if (ExTy->isArrayType()) {
+      assert(T->isPointerType());
+
       V = StateMgr.ArrayToPointer(V);
       MakeNode(Dst, CastE, N, SetSVal(St, CastE, V));
       continue;