diff options
author | Jordy Rose <jediknil@belkadan.com> | 2010-08-03 20:44:35 +0000 |
---|---|---|
committer | Jordy Rose <jediknil@belkadan.com> | 2010-08-03 20:44:35 +0000 |
commit | ddec0926410edfbdef9677577067f214840758fe (patch) | |
tree | 4eda6d5eaaac61c250b7da9740e837e7917a9fdf /clang/lib/Checker/CFRefCount.cpp | |
parent | ad867b0aed3be69aa3f08d28c85c3991bf78f690 (diff) | |
download | bcm5719-llvm-ddec0926410edfbdef9677577067f214840758fe.tar.gz bcm5719-llvm-ddec0926410edfbdef9677577067f214840758fe.zip |
Makes GRState::makeWithStore private, to encourage clients to make store changes through GRState instead of directly accessing the StoreManager. Also adds cover methods for InvalidateRegion(s) and EnterStackFrame to GRState.
This is in preparation for proposed region change notifications. No functionality change.
llvm-svn: 110137
Diffstat (limited to 'clang/lib/Checker/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Checker/CFRefCount.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/clang/lib/Checker/CFRefCount.cpp b/clang/lib/Checker/CFRefCount.cpp index e4a2a39fbe7..b3f29392b19 100644 --- a/clang/lib/Checker/CFRefCount.cpp +++ b/clang/lib/Checker/CFRefCount.cpp @@ -2712,19 +2712,16 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst, // expression (the context) and the expression itself. This should // disambiguate conjured symbols. unsigned Count = Builder.getCurrentBlockCount(); - StoreManager& StoreMgr = Eng.getStateManager().getStoreManager(); StoreManager::InvalidatedSymbols IS; - Store store = state->getStore(); // NOTE: Even if RegionsToInvalidate is empty, we must still invalidate // global variables. - store = StoreMgr.InvalidateRegions(store, RegionsToInvalidate.data(), - RegionsToInvalidate.data() + - RegionsToInvalidate.size(), - Ex, Count, &IS, - /* invalidateGlobals = */ true); + state = state->InvalidateRegions(RegionsToInvalidate.data(), + RegionsToInvalidate.data() + + RegionsToInvalidate.size(), + Ex, Count, &IS, + /* invalidateGlobals = */ true); - state = state->makeWithStore(store); for (StoreManager::InvalidatedSymbols::iterator I = IS.begin(), E = IS.end(); I!=E; ++I) { SymbolRef sym = *I; |