]> granicus.if.org Git - clang/commitdiff
Implicit conversions from arrays can also be conversions to references (will add...
authorTed Kremenek <kremenek@apple.com>
Fri, 24 Oct 2008 21:10:49 +0000 (21:10 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 24 Oct 2008 21:10:49 +0000 (21:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58110 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index acfd7a19937db4e3e86ac089b54a1947e94a90ee..b88b80c56278efdf666f1d73b7283fd47f5f8ce8 100644 (file)
@@ -1507,7 +1507,7 @@ void GRExprEngine::VisitCast(Expr* CastE, Expr* Ex, NodeTy* Pred, NodeSet& Dst){
 
     // StoreManager casts array to different values.
     if (ExTy->isArrayType()) {
-      assert(T->isPointerType());
+      assert(T->isPointerType() || T->isReferenceType());
 
       V = StateMgr.ArrayToPointer(V);
       MakeNode(Dst, CastE, N, SetSVal(St, CastE, V));