diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-04-09 06:41:51 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-04-09 06:41:51 +0000 |
commit | f97c070628971d785cdea5933c02cb2fdb4b7c68 (patch) | |
tree | f46863becc2776b178d9843beb9558773de6c473 /lib/Analysis/CFRefCount.cpp | |
parent | bd41db927aae5ce7437e21c31ebbdc4931396b6c (diff) |
stop using loc::SymbolVal.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index c78ee69c32..2246b3b6c1 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1887,8 +1887,10 @@ void CFRefCount::EvalSummary(ExplodedNodeSet<GRState>& Dst, SymbolRef Sym = Eng.getSymbolManager().getConjuredSymbol(Ex, Count); QualType RetT = GetReturnType(Ex, Eng.getContext()); state = - state.set<RefBindings>(Sym, RefVal::makeOwned(RE.getObjKind(), RetT)); - state = state.BindExpr(Ex, loc::SymbolVal(Sym), false); + state.set<RefBindings>(Sym, RefVal::makeOwned(RE.getObjKind(), RetT)); + MemRegionManager& MRMgr = Eng.getStoreManager().getRegionManager(); + state = state.BindExpr(Ex, Loc::MakeVal(MRMgr.getSymbolicRegion(Sym)), + false); // FIXME: Add a flag to the checker where allocations are assumed to |