diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-29 12:05:04 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-29 12:05:04 +0000 |
| commit | 452273d9c68202e868c01526755274c49b07dd26 (patch) | |
| tree | 3fed920cb4ec5c5e2d0155c955e9c3661e8ca9f1 /clang/lib/Analysis/RegionStore.cpp | |
| parent | 5661fead0b5afea43e7e2cda4ca5751f51cdc115 (diff) | |
| download | bcm5719-llvm-452273d9c68202e868c01526755274c49b07dd26.tar.gz bcm5719-llvm-452273d9c68202e868c01526755274c49b07dd26.zip | |
To be consistent, make the index of the ElementRegion always signed.
llvm-svn: 60248
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
| -rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index 981d69c8223..1b62cc50323 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/lib/Analysis/RegionStore.cpp @@ -646,7 +646,7 @@ Store RegionStoreManager::InitializeArray(Store store, const TypedRegion* R, nonloc::CompoundVal::iterator VI = CV.begin(), VE = CV.end(); for (; i != Size; ++i) { - nonloc::ConcreteInt Idx(getBasicVals().getValue(llvm::APSInt(i))); + nonloc::ConcreteInt Idx(getBasicVals().getValue(llvm::APSInt(i, false))); ElementRegion* ER = MRMgr.getElementRegion(Idx, R); |

