diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-05 03:44:53 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-05 03:44:53 +0000 |
commit | ac78d6b8491bc0378c6237351814e81b1f46f0e8 (patch) | |
tree | e5c37ec10b0df092246e15ebf255b9d8d4ab5570 /lib/Analysis/GRExprEngine.cpp | |
parent | e121da4f81ffa3d484912ad314109c3af8a026f2 (diff) |
Add 'cast<>' to remove an extra function call and dynamic cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 89ae70c090..1d2c70cba2 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/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)); |