forked from OSchip/llvm-project
				
			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); | ||||
|         } | ||||
| 
 | ||||
|         SVal ExprVal; | ||||
|         if (asLValue) | ||||
|           ExprVal = LeftV; | ||||
|         else | ||||
|           ExprVal = RightV; | ||||
|         SVal ExprVal = asLValue ? LeftV : RightV; | ||||
| 
 | ||||
|         // Simulate the effects of a "store":  bind the value of the RHS
 | ||||
|         // to the L-Value represented by the LHS.
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Ted Kremenek
						Ted Kremenek