aboutsummaryrefslogtreecommitdiff
path: root/Analysis/GRConstants.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-25 23:45:34 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-25 23:45:34 +0000
commit5c1e262a1092183f3fb8986cf99fdc584c479b15 (patch)
treeb844f003521235d217b0fa7ff8169d3d553124ea /Analysis/GRConstants.cpp
parentcc1c3654229e9adfcdb90551375aeac00e338bd7 (diff)
Implemented transfer function for '/='.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Analysis/GRConstants.cpp')
-rw-r--r--Analysis/GRConstants.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Analysis/GRConstants.cpp b/Analysis/GRConstants.cpp
index 69a0d93207..13d10f2d8b 100644
--- a/Analysis/GRConstants.cpp
+++ b/Analysis/GRConstants.cpp
@@ -1050,6 +1050,14 @@ void GRConstants::VisitBinaryOperator(BinaryOperator* B,
Nodify(Dst, B, N2, SetValue(SetValue(St, B, Result), L1, Result));
break;
}
+
+ case BinaryOperator::DivAssign: {
+ const LValue& L1 = cast<LValue>(V1);
+ RValue R1 = cast<RValue>(GetValue(N1->getState(), L1));
+ RValue Result = R1.EvalDiv(ValMgr, cast<RValue>(V2));
+ Nodify(Dst, B, N2, SetValue(SetValue(St, B, Result), L1, Result));
+ break;
+ }
default:
Dst.Add(N2);