From ed340f7d26b3a8fedeb2aebeb5b23429e79d18e0 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Wed, 22 Oct 2008 08:02:16 +0000 Subject: [PATCH] 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 --- lib/Analysis/GRExprEngine.cpp | 4 ++-- 1 file 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); -- 2.40.0