diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-03 19:02:42 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-03 19:02:42 +0000 |
commit | 14453bf723c025034823e4d4005a98ee176753a0 (patch) | |
tree | fd5d6569c6ee0ecf66a738c6a3f0219c50e0984a /lib/Analysis/RegionStore.cpp | |
parent | 3e9061f77bab715e3e2bc01a655d5a4e791bd985 (diff) |
Don't use std::auto_ptr with getSubRegionMap().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 6238ff20ed..f3d1f0a44f 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -161,7 +161,7 @@ public: MemRegionManager& getRegionManager() { return MRMgr; } - std::auto_ptr<SubRegionMap> getSubRegionMap(const GRState *state); + SubRegionMap* getSubRegionMap(const GRState *state); const GRState* BindCompoundLiteral(const GRState* St, const CompoundLiteralExpr* CL, SVal V); @@ -303,8 +303,7 @@ StoreManager* clang::CreateRegionStoreManager(GRStateManager& StMgr) { return new RegionStoreManager(StMgr); } -std::auto_ptr<SubRegionMap> -RegionStoreManager::getSubRegionMap(const GRState *state) { +SubRegionMap* RegionStoreManager::getSubRegionMap(const GRState *state) { RegionBindingsTy B = GetRegionBindings(state->getStore()); RegionStoreSubRegionMap *M = new RegionStoreSubRegionMap(); @@ -313,7 +312,7 @@ RegionStoreManager::getSubRegionMap(const GRState *state) { M->add(R->getSuperRegion(), R); } - return std::auto_ptr<SubRegionMap>(M); + return M; } /// getLValueString - Returns an SVal representing the lvalue of a |