GRExprEngine::VisitCast: Just pass through function and block pointers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66036 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index 0de0cea..3d57700 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -1778,6 +1778,12 @@
       MakeNode(Dst, CastE, N, BindExpr(state, CastE, V));
       continue;
     }
+    
+    // Just pass through function and block pointers.
+    if (T->isBlockPointerType() || T->isFunctionPointerType()) {
+      MakeNode(Dst, CastE, N, BindExpr(state, CastE, V));
+      continue;
+    }
   
     // Check for casts from pointers to integers.
     if (T->isIntegerType() && Loc::IsLocType(ExTy)) {