diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-01-28 22:28:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-01-28 22:28:54 +0000 |
commit | 10099a6c5eb8885a014c2306ee18e1a3feaf0772 (patch) | |
tree | 6ca7217827e7b5d0eda506a46ce22e50f1e2bd14 /Analysis/GRConstants.cpp | |
parent | cce207d1a6e6bfa9896257feed339f6098b53ef9 (diff) |
Added transfer function logic for "%=" operator.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Analysis/GRConstants.cpp')
-rw-r--r-- | Analysis/GRConstants.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Analysis/GRConstants.cpp b/Analysis/GRConstants.cpp index 8c7d51b3e0..9e71d336c7 100644 --- a/Analysis/GRConstants.cpp +++ b/Analysis/GRConstants.cpp @@ -1054,6 +1054,14 @@ void GRConstants::VisitBinaryOperator(BinaryOperator* B, Nodify(Dst, B, N2, SetValue(SetValue(St, B, Result), L1, Result)); break; } + + case BinaryOperator::RemAssign: { + const LValue& L1 = cast<LValue>(V1); + NonLValue R1 = cast<NonLValue>(GetValue(N1->getState(), L1)); + NonLValue Result = R1.Rem(ValMgr, cast<NonLValue>(V2)); + Nodify(Dst, B, N2, SetValue(SetValue(St, B, Result), L1, Result)); + break; + } default: Dst.Add(N2); |