diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-01-06 19:12:06 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-01-06 19:12:06 +0000 |
| commit | 47ad37dbe4a325d59140c1bf22373b2ee9d01dfb (patch) | |
| tree | 651ffc795f55c62cdae4a914a3c2333834f19560 | |
| parent | 6e7ecc84c89aa84bcfbc1bf9e785f28cd20b6af6 (diff) | |
| download | bcm5719-llvm-47ad37dbe4a325d59140c1bf22373b2ee9d01dfb.tar.gz bcm5719-llvm-47ad37dbe4a325d59140c1bf22373b2ee9d01dfb.zip | |
Return UnknownVal in RegionStoreManager::getSizeInElements() for unsupported regions. This silences a warning when compiling Release-Asserts builds.
llvm-svn: 61818
| -rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index 602d6bde1d3..4e0215b997e 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/lib/Analysis/RegionStore.cpp @@ -431,6 +431,7 @@ SVal RegionStoreManager::getSizeInElements(const GRState* St, } assert(0 && "Other regions are not supported yet."); + return UnknownVal(); } /// ArrayToPointer - Emulates the "decay" of an array to a pointer |

