]> granicus.if.org Git - clang/commitdiff
Use GetState() to get the possible cleaned state.
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 20 Apr 2010 04:53:09 +0000 (04:53 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 20 Apr 2010 04:53:09 +0000 (04:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101867 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/GRExprEngine.cpp

index e52ce47b12b5b847f691e6a51730144f9e63cb2c..b5f8fee5a22c6c05365b09a903e3baa41f60e231 100644 (file)
@@ -1953,7 +1953,7 @@ void GRExprEngine::EvalEagerlyAssume(ExplodedNodeSet &Dst, ExplodedNodeSet &Src,
       continue;
     }
 
-    const GRState* state = Pred->getState();
+    const GRState* state = GetState(Pred);
     SVal V = state->getSVal(Ex);
     if (nonloc::SymExprVal *SEV = dyn_cast<nonloc::SymExprVal>(&V)) {
       // First assume that the condition is true.
@@ -2177,7 +2177,7 @@ void GRExprEngine::VisitObjCMessageExpr(ObjCMessageExpr* ME, ExplodedNode* Pred,
     SaveOr OldHasGen(Builder->HasGeneratedNode);
 
     if (const Expr *Receiver = ME->getReceiver()) {
-      const GRState *state = Pred->getState();
+      const GRState *state = GetState(Pred);
 
       // Bifurcate the state into nil and non-nil ones.
       DefinedOrUnknownSVal receiverVal =
@@ -3029,7 +3029,7 @@ void GRExprEngine::VisitBinaryOperator(BinaryOperator* B,
   ExplodedNodeSet Tmp3;
 
   for (ExplodedNodeSet::iterator I1=Tmp1.begin(), E1=Tmp1.end(); I1!=E1; ++I1) {
-    SVal LeftV = (*I1)->getState()->getSVal(LHS);
+    SVal LeftV = GetState(*I1)->getSVal(LHS);
     ExplodedNodeSet Tmp2;
     Visit(RHS, *I1, Tmp2);