]> granicus.if.org Git - clang/commitdiff
Make the behavior explicit by not using the method call.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 9 Oct 2009 02:18:31 +0000 (02:18 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 9 Oct 2009 02:18:31 +0000 (02:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83611 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionStore.cpp

index a2f636f89051191a3610542d1f356ccd0a234dfd..fb8ee354b9b8e0a4729807db1acc7218960ddb7e 100644 (file)
@@ -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;
 }