diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-04-09 06:53:24 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-04-09 06:53:24 +0000 |
| commit | 2945210d71a1a5daa14bdd806ebb99544e640a6b (patch) | |
| tree | 7a70ae202ea180e01671094b67299b318035cda0 /clang/lib | |
| parent | c48eb32872e26724838363c9ee671738b491668c (diff) | |
| download | bcm5719-llvm-2945210d71a1a5daa14bdd806ebb99544e640a6b.tar.gz bcm5719-llvm-2945210d71a1a5daa14bdd806ebb99544e640a6b.zip | |
clean up code with new API.
llvm-svn: 68698
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Analysis/GRExprEngine.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index 3809d593cfd..7abb1a42623 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/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); |

