diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-15 05:18:50 +0000 | 
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-15 05:18:50 +0000 | 
| commit | 6a276cf5b7026284be470f9784c211938d31420c (patch) | |
| tree | 0ca3c9accfc88c3c98e3020e40be4efe761637c3 | |
| parent | fe354a200a8190716f9c73803413d85897fe7130 (diff) | |
| download | bcm5719-llvm-6a276cf5b7026284be470f9784c211938d31420c.tar.gz bcm5719-llvm-6a276cf5b7026284be470f9784c211938d31420c.zip  | |
Improve zero value generation.
llvm-svn: 59356
| -rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index b09c49ec093..f1c57b33bdf 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/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);                      | 

