Tighten computation of ExprVal using ?: expression. No functionality change.
llvm-svn: 85618
This commit is contained in:
parent
916462b2f7
commit
5c2040b182
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue