summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Analysis/RegionStore.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index 2ece31ed4c4..145559e8b81 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/lib/Analysis/RegionStore.cpp
@@ -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);
}
OpenPOWER on IntegriCloud