diff options
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index b09c49ec09..f1c57b33bd 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -232,8 +232,7 @@ SVal RegionStoreManager::ArrayToPointer(SVal Array) { const MemRegion* ArrayR = cast<loc::MemRegionVal>(&Array)->getRegion(); BasicValueFactory& BasicVals = StateMgr.getBasicVals(); - // FIXME: Find a better way to get bit width. - nonloc::ConcreteInt Idx(BasicVals.getValue(0, 32, false)); + nonloc::ConcreteInt Idx(BasicVals.getZeroWithPtrWidth(false)); ElementRegion* ER = MRMgr.getElementRegion(Idx, ArrayR); return loc::MemRegionVal(ER); |