Skip to content

Commit 6e09d8f

Browse files
committed
Implicit conversions from arrays can also be conversions to references (will add a test case shortly).
llvm-svn: 58110
1 parent 14e6350 commit 6e09d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Analysis/GRExprEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ void GRExprEngine::VisitCast(Expr* CastE, Expr* Ex, NodeTy* Pred, NodeSet& Dst){
15071507

15081508
// StoreManager casts array to different values.
15091509
if (ExTy->isArrayType()) {
1510-
assert(T->isPointerType());
1510+
assert(T->isPointerType() || T->isReferenceType());
15111511

15121512
V = StateMgr.ArrayToPointer(V);
15131513
MakeNode(Dst, CastE, N, SetSVal(St, CastE, V));

0 commit comments

Comments
 (0)