Tighten computation of ExprVal using ?: expression. No functionality change.

llvm-svn: 85618
This commit is contained in:
Ted Kremenek 2009-10-30 22:01:29 +00:00
parent 916462b2f7
commit 5c2040b182
1 changed files with 1 additions and 5 deletions

View File

@ -2721,11 +2721,7 @@ void GRExprEngine::VisitBinaryOperator(BinaryOperator* B,
RightV = ValMgr.getConjuredSymbolVal(NULL, B->getRHS(), Count); RightV = ValMgr.getConjuredSymbolVal(NULL, B->getRHS(), Count);
} }
SVal ExprVal; SVal ExprVal = asLValue ? LeftV : RightV;
if (asLValue)
ExprVal = LeftV;
else
ExprVal = RightV;
// Simulate the effects of a "store": bind the value of the RHS // Simulate the effects of a "store": bind the value of the RHS
// to the L-Value represented by the LHS. // to the L-Value represented by the LHS.