From: Ted Kremenek Date: Tue, 6 Jan 2009 19:12:06 +0000 (+0000) Subject: Return UnknownVal in RegionStoreManager::getSizeInElements() for unsupported regions... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a21362d16c9f0a4f8ba6b0ebf248cb7965c11966;p=clang Return UnknownVal in RegionStoreManager::getSizeInElements() for unsupported regions. This silences a warning when compiling Release-Asserts builds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61818 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 602d6bde1d..4e0215b997 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/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