summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-04-09 06:53:24 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-04-09 06:53:24 +0000
commit2945210d71a1a5daa14bdd806ebb99544e640a6b (patch)
tree7a70ae202ea180e01671094b67299b318035cda0 /clang/lib
parentc48eb32872e26724838363c9ee671738b491668c (diff)
downloadbcm5719-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.cpp10
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);
OpenPOWER on IntegriCloud