[cfe-commits] r46379 - /cfe/trunk/Analysis/GRConstants.cpp
Ted Kremenek
kremenek at apple.com
Fri Jan 25 15:45:34 PST 2008
Author: kremenek
Date: Fri Jan 25 17:45:34 2008
New Revision: 46379
URL: http://llvm.org/viewvc/llvm-project?rev=46379&view=rev
Log:
Implemented transfer function for '/='.
Modified:
cfe/trunk/Analysis/GRConstants.cpp
Modified: cfe/trunk/Analysis/GRConstants.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRConstants.cpp?rev=46379&r1=46378&r2=46379&view=diff
==============================================================================
--- cfe/trunk/Analysis/GRConstants.cpp (original)
+++ cfe/trunk/Analysis/GRConstants.cpp Fri Jan 25 17:45:34 2008
@@ -1050,6 +1050,14 @@
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);
More information about the cfe-commits
mailing list