[cfe-commits] r68695 - /cfe/trunk/lib/Analysis/CFRefCount.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Wed Apr 8 23:41:51 PDT 2009
Author: zhongxingxu
Date: Thu Apr 9 01:41:51 2009
New Revision: 68695
URL: http://llvm.org/viewvc/llvm-project?rev=68695&view=rev
Log:
stop using loc::SymbolVal.
Modified:
cfe/trunk/lib/Analysis/CFRefCount.cpp
Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=68695&r1=68694&r2=68695&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Thu Apr 9 01:41:51 2009
@@ -1887,8 +1887,10 @@
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
More information about the cfe-commits
mailing list