]> granicus.if.org Git - clang/commitdiff
Rename 'makeZeroIndex' to 'makeZeroArrayIndex'.
authorTed Kremenek <kremenek@apple.com>
Mon, 4 May 2009 15:17:38 +0000 (15:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 4 May 2009 15:17:38 +0000 (15:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70865 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/ValueManager.h
lib/Analysis/SVals.cpp
lib/Analysis/Store.cpp

index d84008189330438a098a4fbf3685e04b09acf07d..271d9862e4f8b19af6a3a428c98c0cc8279413ed 100644 (file)
@@ -76,9 +76,9 @@ public:
   
   /// makeZeroVal - Construct an SVal representing '0' for the specified type.
   SVal makeZeroVal(QualType T);
-  /// makeZeroIndex - Construct an SVal representing '0' index for array
+  /// makeZeroArrayIndex - Construct an SVal representing '0' index for array
   /// elements.
-  SVal makeZeroIndex();
+  SVal makeZeroArrayIndex();
 
   /// GetRValueSymbolVal - make a unique symbol for value of R.
   SVal getRValueSymbolVal(const MemRegion* R);
index 43ede0f7cd86c9417fe12a990ab8766f49fc0986..724b8cf8c5d59974151e8df57547b4f53206f7dd 100644 (file)
@@ -227,7 +227,7 @@ SVal ValueManager::makeZeroVal(QualType T) {
   return UnknownVal();  
 }
 
-SVal ValueManager::makeZeroIndex() {
+SVal ValueManager::makeZeroArrayIndex() {
   return nonloc::ConcreteInt(BasicVals.getZeroWithPtrWidth(false));
 }
 
index 749a657b12a30b102c56687d2fdca1c12bd95267..32b186b269c7bcef818081f13f66b7246e7523fd 100644 (file)
@@ -65,7 +65,7 @@ StoreManager::CastRegion(const GRState* state, const MemRegion* R,
       if (const TypedRegion *TR = dyn_cast<TypedRegion>(R)) {
         // Check if we are casting to a region with an integer type.  We now
         // the types aren't the same, so we construct an ElementRegion.
-        SVal Idx = ValMgr.makeZeroIndex();
+        SVal Idx = ValMgr.makeZeroArrayIndex();
         
         // If the super region is an element region, strip it away.
         // FIXME: Is this the right thing to do in all cases?