diff options
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index ba67829d0c..9ef3fe8463 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -1046,8 +1046,6 @@ const GRState* RegionStoreManager::BindArray(const GRState* St, St = state.set<RegionDefaultValue>(R, NonLoc::MakeIntVal(getBasicVals(), 0, false)); - Store store = St->getStore(); - ConstantArrayType* CAT = cast<ConstantArrayType>(T.getTypePtr()); llvm::APSInt Size(CAT->getSize(), false); @@ -1076,7 +1074,7 @@ const GRState* RegionStoreManager::BindArray(const GRState* St, St = Bind(St, loc::MemRegionVal(ER), V); } - return StateMgr.MakeStateWithStore(St, store); + return St; } @@ -1098,7 +1096,7 @@ const GRState* RegionStoreManager::BindArray(const GRState* St, St = Bind(St, Loc::MakeVal(ER), *VI); } - return StateMgr.MakeStateWithStore(St, store); + return St; } const GRState* |