]> granicus.if.org Git - clang/commitdiff
GRExprEngine::VisitCast: Just pass through function and block pointers.
authorTed Kremenek <kremenek@apple.com>
Wed, 4 Mar 2009 16:52:57 +0000 (16:52 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 4 Mar 2009 16:52:57 +0000 (16:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66036 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 0de0cea40bea7d2873735d491669e8951b3163ce..3d577006f3e961ac0e3434b6e1a7ffe01be460de 100644 (file)
@@ -1778,6 +1778,12 @@ void GRExprEngine::VisitCast(Expr* CastE, Expr* Ex, NodeTy* Pred, NodeSet& Dst){
       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)) {