зеркало из https://github.com/microsoft/clang-1.git
Tighten computation of ExprVal using ?: expression. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2cc782f793
Коммит
12e6f03412
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче