diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-02-05 03:01:53 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-02-05 03:01:53 +0000 |
commit | 576bb92057979b14ca04b3080a9405662d0217a3 (patch) | |
tree | 7912ce922c5dbc4d887c65d6af3d44fd4b234896 /lib/Checker/BasicStore.cpp | |
parent | bfcaf8048d1673320de60a22ca9c297d7484b2a8 (diff) |
More GRState* -> Store changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/BasicStore.cpp')
-rw-r--r-- | lib/Checker/BasicStore.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Checker/BasicStore.cpp b/lib/Checker/BasicStore.cpp index 5de9573805..ceefe0338c 100644 --- a/lib/Checker/BasicStore.cpp +++ b/lib/Checker/BasicStore.cpp @@ -44,7 +44,7 @@ public: return new BasicStoreSubRegionMap(); } - SVal Retrieve(const GRState *state, Loc loc, QualType T = QualType()); + SVal Retrieve(Store store, Loc loc, QualType T = QualType()); const GRState *InvalidateRegion(const GRState *state, const MemRegion *R, const Expr *E, unsigned Count, @@ -249,7 +249,7 @@ static bool isHigherOrderRawPtr(QualType T, ASTContext &C) { } } -SVal BasicStoreManager::Retrieve(const GRState *state, Loc loc, QualType T) { +SVal BasicStoreManager::Retrieve(Store store, Loc loc, QualType T) { if (isa<UnknownVal>(loc)) return UnknownVal(); @@ -263,7 +263,7 @@ SVal BasicStoreManager::Retrieve(const GRState *state, Loc loc, QualType T) { if (!(isa<VarRegion>(R) || isa<ObjCIvarRegion>(R))) return UnknownVal(); - BindingsTy B = GetBindings(state->getStore()); + BindingsTy B = GetBindings(store); BindingsTy::data_type *Val = B.lookup(R); if (!Val) @@ -394,7 +394,7 @@ BasicStoreManager::RemoveDeadBindings(GRState &state, Stmt* Loc, break; Marked.insert(MR); - SVal X = Retrieve(&state, loc::MemRegionVal(MR)); + SVal X = Retrieve(state.getStore(), loc::MemRegionVal(MR)); // FIXME: We need to handle symbols nested in region definitions. for (symbol_iterator SI=X.symbol_begin(),SE=X.symbol_end();SI!=SE;++SI) |