aboutsummaryrefslogtreecommitdiff
path: root/Analysis/GRConstants.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-28 22:26:15 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-28 22:26:15 +0000
commitcce207d1a6e6bfa9896257feed339f6098b53ef9 (patch)
treebb23a233325c818de31a286065b2f5f8832fa421 /Analysis/GRConstants.cpp
parentf264562c26b7fe754e064ee6dac06092976c471b (diff)
Added transfer function hookups for "modulo" operator.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Analysis/GRConstants.cpp')
-rw-r--r--Analysis/GRConstants.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Analysis/GRConstants.cpp b/Analysis/GRConstants.cpp
index d28140287b..8c7d51b3e0 100644
--- a/Analysis/GRConstants.cpp
+++ b/Analysis/GRConstants.cpp
@@ -1009,6 +1009,13 @@ void GRConstants::VisitBinaryOperator(BinaryOperator* B,
break;
}
+ case BinaryOperator::Rem: {
+ const NonLValue& R1 = cast<NonLValue>(V1);
+ const NonLValue& R2 = cast<NonLValue>(V2);
+ Nodify(Dst, B, N2, SetValue(St, B, R1.Rem(ValMgr, R2)));
+ break;
+ }
+
case BinaryOperator::Assign: {
const LValue& L1 = cast<LValue>(V1);
const NonLValue& R2 = cast<NonLValue>(V2);