diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-08-23 00:50:55 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-08-23 00:50:55 +0000 |
commit | e53c069bdaf0683f52ecfaf45ccfc816fdb4288f (patch) | |
tree | 66fbcf811d1ef517b7efd4e3c74468235a2a9831 /lib/Analysis/GRState.cpp | |
parent | f03a8d276ced40f55478bfc29326c4365510e84c (diff) |
Simplify interface to Store::AddDecl
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRState.cpp')
-rw-r--r-- | lib/Analysis/GRState.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Analysis/GRState.cpp b/lib/Analysis/GRState.cpp index f9257274a6..f1e07907fd 100644 --- a/lib/Analysis/GRState.cpp +++ b/lib/Analysis/GRState.cpp @@ -148,13 +148,14 @@ const GRState* GRStateManager::AddDecl(const GRState* St, const VarDecl* VD, Store NewStore; if (Ex) - NewStore = StMgr->AddDecl(OldStore, BasicVals, SymMgr, VD, Ex, + NewStore = StMgr->AddDecl(OldStore, *this, VD, Ex, GetRVal(St, Ex), Count); else - NewStore = StMgr->AddDecl(OldStore, BasicVals, SymMgr, VD, Ex); + NewStore = StMgr->AddDecl(OldStore, *this, VD, Ex); if (NewStore == OldStore) return St; + GRState NewSt = *St; NewSt.St = NewStore; return getPersistentState(NewSt); |