[cfe-commits] r66036 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp
Ted Kremenek
kremenek at apple.com
Wed Mar 4 08:52:58 PST 2009
Author: kremenek
Date: Wed Mar 4 10:52:57 2009
New Revision: 66036
URL: http://llvm.org/viewvc/llvm-project?rev=66036&view=rev
Log:
GRExprEngine::VisitCast: Just pass through function and block pointers.
Modified:
cfe/trunk/lib/Analysis/GRExprEngine.cpp
Modified: cfe/trunk/lib/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngine.cpp?rev=66036&r1=66035&r2=66036&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Wed Mar 4 10:52:57 2009
@@ -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)) {
More information about the cfe-commits
mailing list