diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-10-24 21:10:49 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-10-24 21:10:49 +0000 |
commit | 0b50f5bdd66e3124775eff41f33d6ab0890b315e (patch) | |
tree | 147e57bae64a67c267add5b2325b021b364f973f /lib/Analysis/GRExprEngine.cpp | |
parent | f4b3548ac5ba2f82f347fb4312adcff4da3fa592 (diff) |
Implicit conversions from arrays can also be conversions to references (will add a test case shortly).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index acfd7a1993..b88b80c562 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -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)); |