Reduce permissiveness of assertion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59354 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index 3383cdb..55fbf18 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -1686,8 +1686,7 @@
// Check for casts from array type to pointer type.
if (ExTy->isArrayType()) {
- assert(T->isPointerType() || T->isReferenceType());
-
+ assert(T->isPointerType());
V = StateMgr.ArrayToPointer(V);
MakeNode(Dst, CastE, N, BindExpr(St, CastE, V));
continue;