[cfe-commits] r46470 - /cfe/trunk/Analysis/GRConstants.cpp

Ted Kremenek kremenek at apple.com
Mon Jan 28 14:28:54 PST 2008


Author: kremenek
Date: Mon Jan 28 16:28:54 2008
New Revision: 46470

URL: http://llvm.org/viewvc/llvm-project?rev=46470&view=rev
Log:
Added transfer function logic for "%=" operator.

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=46470&r1=46469&r2=46470&view=diff

==============================================================================
--- cfe/trunk/Analysis/GRConstants.cpp (original)
+++ cfe/trunk/Analysis/GRConstants.cpp Mon Jan 28 16:28:54 2008
@@ -1054,6 +1054,14 @@
           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);





More information about the cfe-commits mailing list