[cfe-commits] r68694 - /cfe/trunk/lib/Analysis/CFRefCount.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Wed Apr 8 23:35:30 PDT 2009
Author: zhongxingxu
Date: Thu Apr 9 01:35:30 2009
New Revision: 68694
URL: http://llvm.org/viewvc/llvm-project?rev=68694&view=rev
Log:
clean up code with new API.
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=68694&r1=68693&r2=68694&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Thu Apr 9 01:35:30 2009
@@ -1857,12 +1857,8 @@
if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())) {
unsigned Count = Builder.getCurrentBlockCount();
- SymbolRef Sym = Eng.getSymbolManager().getConjuredSymbol(Ex, Count);
-
- SVal X = Loc::IsLocType(T)
- ? cast<SVal>(loc::SymbolVal(Sym))
- : cast<SVal>(nonloc::SymbolVal(Sym));
-
+ SVal X = SVal::GetConjuredSymbolVal(Eng.getSymbolManager(),
+ Eng.getStoreManager().getRegionManager(), Ex, T, Count);
state = state.BindExpr(Ex, X, false);
}
More information about the cfe-commits
mailing list