Add 'cast<>' to remove an extra function call and dynamic cast.

llvm-svn: 66131
This commit is contained in:
Ted Kremenek 2009-03-05 03:44:53 +00:00
parent d982bd83ba
commit 9ce427b21f
1 changed files with 2 additions and 2 deletions

View File

@ -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));