diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-07-10 00:41:58 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-07-10 00:41:58 +0000 |
commit | c037eac3bda3c636c961aab6377beea3242e81e4 (patch) | |
tree | 68cf85035c332e024fbffba49ba8f42a727ab91f /lib/Analysis/BasicStore.cpp | |
parent | fdee089b11e0bb57aa2c7291dd5e4201c2f906ff (diff) |
Switch BasicStoreManager to use the new CastRegion implementation by default,
and replace the 'clang-cc' option '-analyzer-store=basic-new-cast' with
'-analyzer-store=basic-old-cast'. We'll keep the old CastRegion implementation
around for a little while for regression testing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BasicStore.cpp')
-rw-r--r-- | lib/Analysis/BasicStore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/BasicStore.cpp b/lib/Analysis/BasicStore.cpp index c897b2f3fc..ba1ccf1f90 100644 --- a/lib/Analysis/BasicStore.cpp +++ b/lib/Analysis/BasicStore.cpp @@ -38,7 +38,7 @@ class VISIBILITY_HIDDEN BasicStoreManager : public StoreManager { const MemRegion* SelfRegion; public: - BasicStoreManager(GRStateManager& mgr, bool useNewCastRegion = false) + BasicStoreManager(GRStateManager& mgr, bool useNewCastRegion = true) : StoreManager(mgr, useNewCastRegion), VBFactory(mgr.getAllocator()), SelfRegion(0) {} @@ -126,8 +126,8 @@ StoreManager* clang::CreateBasicStoreManager(GRStateManager& StMgr) { return new BasicStoreManager(StMgr); } -StoreManager* clang::CreateBasicStoreNewCastManager(GRStateManager& StMgr) { - return new BasicStoreManager(StMgr, true); +StoreManager* clang::CreateBasicStoreOldCastManager(GRStateManager& StMgr) { + return new BasicStoreManager(StMgr, false); } SVal BasicStoreManager::getLValueVar(const GRState *state, const VarDecl* VD) { |