[cfe-commits] r83611 - /cfe/trunk/lib/Analysis/RegionStore.cpp

Zhongxing Xu xuzhongxing at gmail.com
Thu Oct 8 19:18:31 PDT 2009


Author: zhongxingxu
Date: Thu Oct  8 21:18:31 2009
New Revision: 83611

URL: http://llvm.org/viewvc/llvm-project?rev=83611&view=rev
Log:
Make the behavior explicit by not using the method call.

Modified:
    cfe/trunk/lib/Analysis/RegionStore.cpp

Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=83611&r1=83610&r2=83611&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Thu Oct  8 21:18:31 2009
@@ -1485,7 +1485,7 @@
   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 @@
 
   // 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;
 }





More information about the cfe-commits mailing list