clean up code with new API.

llvm-svn: 68698
This commit is contained in:
Zhongxing Xu 2009-04-09 06:53:24 +00:00
parent c48eb32872
commit 2945210d71
1 changed files with 2 additions and 8 deletions

View File

@ -2138,14 +2138,8 @@ void GRExprEngine::VisitDeclStmt(DeclStmt* DS, NodeTy* Pred, NodeSet& Dst) {
// UnknownVal.
if (InitVal.isUnknown() ||
!getConstraintManager().canReasonAbout(InitVal)) {
if (Loc::IsLocType(T)) {
SymbolRef Sym = SymMgr.getConjuredSymbol(InitEx, Count);
InitVal = loc::SymbolVal(Sym);
}
else if (T->isIntegerType() && T->isScalarType()) {
SymbolRef Sym = SymMgr.getConjuredSymbol(InitEx, Count);
InitVal = nonloc::SymbolVal(Sym);
}
InitVal = SVal::GetConjuredSymbolVal(SymMgr,
getStoreManager().getRegionManager(), InitEx, Count);
}
state = StateMgr.BindDecl(state, VD, InitVal);