summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-10-24 21:10:49 +0000
committerTed Kremenek <kremenek@apple.com>2008-10-24 21:10:49 +0000
commit6e09d8f632deec76e5464dd01eb5f6275f76322f (patch)
tree55222c30ded2bba40558766e69f0ff1f39dea4f1 /clang
parent14e6350dcc6ae06bd7982a0cac262fc651904b40 (diff)
downloadbcm5719-llvm-6e09d8f632deec76e5464dd01eb5f6275f76322f.tar.gz
bcm5719-llvm-6e09d8f632deec76e5464dd01eb5f6275f76322f.zip
Implicit conversions from arrays can also be conversions to references (will add a test case shortly).
llvm-svn: 58110
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index acfd7a19937..b88b80c5627 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/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));
OpenPOWER on IntegriCloud