forked from OSchip/llvm-project
[analyzer][NFC] Inline ExprEngine::evalComplement
Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126124
This commit is contained in:
parent
d6708b7419
commit
7a2d6dea73
|
@ -590,10 +590,6 @@ public:
|
|||
return X.isValid() ? svalBuilder.evalMinus(X.castAs<NonLoc>()) : X;
|
||||
}
|
||||
|
||||
SVal evalComplement(SVal X) {
|
||||
return X.isValid() ? svalBuilder.evalComplement(X.castAs<NonLoc>()) : X;
|
||||
}
|
||||
|
||||
ProgramStateRef handleLValueBitCast(ProgramStateRef state, const Expr *Ex,
|
||||
const LocationContext *LCtx, QualType T,
|
||||
QualType ExTy, const CastExpr *CastE,
|
||||
|
|
|
@ -1029,7 +1029,8 @@ void ExprEngine::VisitUnaryOperator(const UnaryOperator* U, ExplodedNode *Pred,
|
|||
llvm_unreachable("Invalid Opcode.");
|
||||
case UO_Not:
|
||||
// FIXME: Do we need to handle promotions?
|
||||
state = state->BindExpr(U, LCtx, evalComplement(V.castAs<NonLoc>()));
|
||||
state = state->BindExpr(
|
||||
U, LCtx, svalBuilder.evalComplement(V.castAs<NonLoc>()));
|
||||
break;
|
||||
case UO_Minus:
|
||||
// FIXME: Do we need to handle promotions?
|
||||
|
|
Loading…
Reference in New Issue