From cfe2991306434fb0fe2decf7637a15b8d79f256e Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Thu, 9 Apr 2009 06:53:24 +0000 Subject: [PATCH] clean up code with new API. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68698 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/GRExprEngine.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 3809d593cf..7abb1a4262 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -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); -- 2.50.1