clean up code with new API.

llvm-svn: 68687
This commit is contained in:
Zhongxing Xu 2009-04-09 06:03:54 +00:00
parent 2f3b0dbff4
commit d3b33ba406
1 changed files with 4 additions and 8 deletions
clang/lib/Analysis

View File

@ -1759,14 +1759,10 @@ void CFRefCount::EvalSummary(ExplodedNodeSet<GRState>& Dst,
unsigned Count = Builder.getCurrentBlockCount(); unsigned Count = Builder.getCurrentBlockCount();
QualType T = R->getRValueType(Ctx); QualType T = R->getRValueType(Ctx);
if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())) { if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())){
SymbolRef NewSym = SVal V = SVal::GetRValueSymbolVal(Eng.getSymbolManager(),
Eng.getSymbolManager().getConjuredSymbol(*I, T, Count); Eng.getStoreManager().getRegionManager(), R);
state = state.BindLoc(Loc::MakeVal(R), V);
state = state.BindLoc(Loc::MakeVal(R),
Loc::IsLocType(T)
? cast<SVal>(loc::SymbolVal(NewSym))
: cast<SVal>(nonloc::SymbolVal(NewSym)));
} }
else if (const RecordType *RT = T->getAsStructureType()) { else if (const RecordType *RT = T->getAsStructureType()) {
// Handle structs in a not so awesome way. Here we just // Handle structs in a not so awesome way. Here we just