diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-12 02:48:32 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-12 02:48:32 +0000 |
commit | 383c273966c20b029ee2f104ec7d6318c9968006 (patch) | |
tree | 4523b1b578f5a05af6ea9c5fa027fe75b657a0b5 /clang/lib/Analysis/RegionStore.cpp | |
parent | 495922cb6ae1008aa62b769ffa5c9f560a8c2ffc (diff) | |
download | bcm5719-llvm-383c273966c20b029ee2f104ec7d6318c9968006.tar.gz bcm5719-llvm-383c273966c20b029ee2f104ec7d6318c9968006.zip |
Make StoreManager::getSizeInElements() always return DefinedOrUnknownSVal.
llvm-svn: 86932
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index 91769cd447c..46cddd0da1b 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/lib/Analysis/RegionStore.cpp @@ -360,7 +360,8 @@ public: //===------------------------------------------------------------------===// const GRState *setExtent(const GRState *state, const MemRegion* R, SVal Extent); - SVal getSizeInElements(const GRState *state, const MemRegion* R); + DefinedOrUnknownSVal getSizeInElements(const GRState *state, + const MemRegion* R); //===------------------------------------------------------------------===// // Utility methods. @@ -696,8 +697,8 @@ SVal RegionStoreManager::getLValueElement(QualType elementType, SVal Offset, // Extents for regions. //===----------------------------------------------------------------------===// -SVal RegionStoreManager::getSizeInElements(const GRState *state, - const MemRegion *R) { +DefinedOrUnknownSVal RegionStoreManager::getSizeInElements(const GRState *state, + const MemRegion *R) { switch (R->getKind()) { case MemRegion::MemSpaceRegionKind: |