[cfe-commits] r85618 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp
Ted Kremenek
kremenek at apple.com
Fri Oct 30 15:01:30 PDT 2009
Author: kremenek
Date: Fri Oct 30 17:01:29 2009
New Revision: 85618
URL: http://llvm.org/viewvc/llvm-project?rev=85618&view=rev
Log:
Tighten computation of ExprVal using ?: expression. No functionality change.
Modified:
cfe/trunk/lib/Analysis/GRExprEngine.cpp
Modified: cfe/trunk/lib/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngine.cpp?rev=85618&r1=85617&r2=85618&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Fri Oct 30 17:01:29 2009
@@ -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.
More information about the cfe-commits
mailing list