diff options
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
| -rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index 6238ff20ed7..f3d1f0a44fe 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/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 |

