diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index ff911678da..b33a7ca5ab 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1609,17 +1609,17 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst, SymbolID NewSym = Eng.getSymbolManager().getConjuredSymbol(*I, T, Count); - state = state.SetSVal(*MR, + state = state.BindLoc(*MR, Loc::IsLocType(T) ? cast(loc::SymbolVal(NewSym)) : cast(nonloc::SymbolVal(NewSym))); } else { - state = state.SetSVal(*MR, UnknownVal()); + state = state.BindLoc(*MR, UnknownVal()); } } else - state = state.SetSVal(*MR, UnknownVal()); + state = state.BindLoc(*MR, UnknownVal()); } else { // Nuke all other arguments passed by reference. @@ -1677,7 +1677,7 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst, ? cast(loc::SymbolVal(Sym)) : cast(nonloc::SymbolVal(Sym)); - state = state.SetSVal(Ex, X, false); + state = state.BindExpr(Ex, X, false); } break; @@ -1688,14 +1688,14 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst, assert (arg_end >= arg_beg); assert (idx < (unsigned) (arg_end - arg_beg)); SVal V = state.GetSVal(*(arg_beg+idx)); - state = state.SetSVal(Ex, V, false); + state = state.BindExpr(Ex, V, false); break; } case RetEffect::ReceiverAlias: { assert (Receiver); SVal V = state.GetSVal(Receiver); - state = state.SetSVal(Ex, V, false); + state = state.BindExpr(Ex, V, false); break; } @@ -1706,7 +1706,7 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst, QualType RetT = GetReturnType(Ex, Eng.getContext()); state = state.set(Sym, RefVal::makeOwned(RetT)); - state = state.SetSVal(Ex, loc::SymbolVal(Sym), false); + state = state.BindExpr(Ex, loc::SymbolVal(Sym), false); #if 0 RefBindings B = GetRefBindings(StImpl); @@ -1726,7 +1726,7 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst, QualType RetT = GetReturnType(Ex, Eng.getContext()); state = state.set(Sym, RefVal::makeNotOwned(RetT)); - state = state.SetSVal(Ex, loc::SymbolVal(Sym), false); + state = state.BindExpr(Ex, loc::SymbolVal(Sym), false); break; } } @@ -1852,7 +1852,7 @@ void CFRefCount::EvalStore(ExplodedNodeSet& Dst, // To test (3), generate a new state with the binding removed. If it is // the same state, then it escapes (since the store cannot represent // the binding). - GRStateRef stateNew = state.SetSVal(cast(TargetLV), Val); + GRStateRef stateNew = state.BindLoc(cast(TargetLV), Val); escapes = (stateNew == state); } }