summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-05 03:44:53 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-05 03:44:53 +0000
commit9ce427b21fe65a4c5589b1eb0afd18e270c41a9a (patch)
tree27034b6ee26801906d33a9f141b2aa0695441a34 /clang
parentd982bd83bac5724bc0cec199f2733c834fef2359 (diff)
downloadbcm5719-llvm-9ce427b21fe65a4c5589b1eb0afd18e270c41a9a.tar.gz
bcm5719-llvm-9ce427b21fe65a4c5589b1eb0afd18e270c41a9a.zip
Add 'cast<>' to remove an extra function call and dynamic cast.
llvm-svn: 66131
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index 89ae70c0901..1d2c70cba2a 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/lib/Analysis/GRExprEngine.cpp
@@ -1720,8 +1720,8 @@ void GRExprEngine::VisitCastPointerToInteger(SVal V, const GRState* state,
// FIXME: Determine if the number of bits of the target type is
// equal or exceeds the number of bits to store the pointer value.
// If not, flag an error.
- MakeNode(Dst, CastE, Pred, BindExpr(state, CastE,
- EvalCast(V, CastE->getType())));
+ MakeNode(Dst, CastE, Pred, BindExpr(state, CastE, EvalCast(cast<Loc>(V),
+ CastE->getType())));
}
else
MakeNode(Dst, CastE, Pred, BindExpr(state, CastE, V));
OpenPOWER on IntegriCloud