]> granicus.if.org Git - clang/commitdiff
remove commented code.
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 6 May 2009 02:54:11 +0000 (02:54 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 6 May 2009 02:54:11 +0000 (02:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71060 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionStore.cpp

index 2ece31ed4c4e905377e2792dafbd1b5acde5c439..145559e8b81a89eb2a43305cd0d332d492b20d98 100644 (file)
@@ -639,14 +639,6 @@ RegionStoreManager::CastRegion(const GRState* state, const MemRegion* R,
       || isa<ObjCIvarRegion>(R) || isa<CompoundLiteralRegion>(R)) {
     // FIXME: create an ElementRegion when the size of the pointee type is
     // smaller than the region.
-    //unsigned PointeeSize = getSizeInBits(PointeeTy);
-    //unsigned RegionSize = getSizeInBits(R);
-//     if (PointeeSize < RegionSize) {
-//       SVal Idx = ValMgr.makeZeroArrayIndex();
-//       ElementRegion* ER = MRMgr.getElementRegion(Pointee, Idx, R);
-//       return CastResult(state, ER);
-//     }
-//     else
     return CastResult(state, R);
   }