Tighten computation of ExprVal using ?: expression. No functionality change.
llvm-svn: 85618
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index 284fae8..2ac10bb 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/lib/Analysis/GRExprEngine.cpp
@@ -2721,11 +2721,7 @@
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.