]> granicus.if.org Git - clang/commitdiff
Exprs of function type is another special case for ImplicitCast.
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 22 Oct 2008 08:02:16 +0000 (08:02 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 22 Oct 2008 08:02:16 +0000 (08:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57963 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index fa33028495ca81d853cdcef5fb0e366d2e75b2f9..ebf8df968fb8b890ebe74414298abf3c6616aa65 100644 (file)
@@ -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);