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 | 6e09d8f632deec76e5464dd01eb5f6275f76322f (patch) | |
| tree | 55222c30ded2bba40558766e69f0ff1f39dea4f1 /clang | |
| parent | 14e6350dcc6ae06bd7982a0cac262fc651904b40 (diff) | |
| download | bcm5719-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.cpp | 2 |
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)); |

