summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-10-09 02:18:31 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-10-09 02:18:31 +0000
commite77cd12f10f31d9a101c17005094277bae501cf0 (patch)
tree1229e9de7b7eb4cb28dcd9ca3ab236558023d512 /clang/lib/Analysis/RegionStore.cpp
parentfd1588221399349f3c75023439ab5fa9c937df93 (diff)
downloadbcm5719-llvm-e77cd12f10f31d9a101c17005094277bae501cf0.tar.gz
bcm5719-llvm-e77cd12f10f31d9a101c17005094277bae501cf0.zip
Make the behavior explicit by not using the method call.
llvm-svn: 83611
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r--clang/lib/Analysis/RegionStore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index a2f636f8905..fb8ee354b9b 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/lib/Analysis/RegionStore.cpp
@@ -1485,7 +1485,7 @@ const GRState *RegionStoreManager::BindArray(const GRState *state,
if (i < size) {
if (ElementTy->isIntegerType()) {
SVal V = ValMgr.makeZeroVal(ElementTy);
- state = setDefaultValue(state, R, V);
+ state = state->set<RegionDefaultValue>(R, V);
}
}
@@ -1540,7 +1540,7 @@ RegionStoreManager::BindStruct(const GRState *state, const TypedRegion* R,
// There may be fewer values in the initialize list than the fields of struct.
if (FI != FE)
- state = setDefaultValue(state, R, ValMgr.makeIntVal(0, false));
+ state = state->set<RegionDefaultValue>(R, ValMgr.makeIntVal(0, false));
return state;
}
OpenPOWER on IntegriCloud