Add 'cast<>' to remove an extra function call and dynamic cast.
llvm-svn: 66131
This commit is contained in:
parent
d982bd83ba
commit
9ce427b21f
|
@ -1720,8 +1720,8 @@ void GRExprEngine::VisitCastPointerToInteger(SVal V, const GRState* state,
|
||||||
// FIXME: Determine if the number of bits of the target type is
|
// FIXME: Determine if the number of bits of the target type is
|
||||||
// equal or exceeds the number of bits to store the pointer value.
|
// equal or exceeds the number of bits to store the pointer value.
|
||||||
// If not, flag an error.
|
// If not, flag an error.
|
||||||
MakeNode(Dst, CastE, Pred, BindExpr(state, CastE,
|
MakeNode(Dst, CastE, Pred, BindExpr(state, CastE, EvalCast(cast<Loc>(V),
|
||||||
EvalCast(V, CastE->getType())));
|
CastE->getType())));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
MakeNode(Dst, CastE, Pred, BindExpr(state, CastE, V));
|
MakeNode(Dst, CastE, Pred, BindExpr(state, CastE, V));
|
||||||
|
|
Loading…
Reference in New Issue