aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-10-22 08:02:16 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-10-22 08:02:16 +0000
commited340f7d26b3a8fedeb2aebeb5b23429e79d18e0 (patch)
tree1fb9868646ac518ab6e368ae01b3842c13837ef1 /lib/Analysis/GRExprEngine.cpp
parente0a5d5fe8eab573f7764bf6d2ddb02bee8dceaf9 (diff)
Exprs of function type is another special case for ImplicitCast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index fa33028495..ebf8df968f 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -1435,8 +1435,8 @@ void GRExprEngine::VisitCast(Expr* CastE, Expr* Ex, NodeTy* Pred, NodeSet& Dst){
NodeSet S1;
QualType T = CastE->getType();
QualType ExTy = Ex->getType();
-
- if (ExTy->isArrayType() || T->isReferenceType())
+
+ if (ExTy->isArrayType() || ExTy->isFunctionType() || T->isReferenceType())
VisitLValue(Ex, Pred, S1);
else
Visit(Ex, Pred, S1);