From 5c1e262a1092183f3fb8986cf99fdc584c479b15 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 25 Jan 2008 23:45:34 +0000 Subject: [PATCH] Implemented transfer function for '/='. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46379 91177308-0d34-0410-b5e6-96231b3b80d8 --- Analysis/GRConstants.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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(V1); + RValue R1 = cast(GetValue(N1->getState(), L1)); + RValue Result = R1.EvalDiv(ValMgr, cast(V2)); + Nodify(Dst, B, N2, SetValue(SetValue(St, B, Result), L1, Result)); + break; + } default: Dst.Add(N2); -- 2.50.1