]> granicus.if.org Git - clang/commitdiff
Enhance basic store to also lazily symbolicate VarRegions
authorTed Kremenek <kremenek@apple.com>
Wed, 10 Mar 2010 00:18:08 +0000 (00:18 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 10 Mar 2010 00:18:08 +0000 (00:18 +0000)
with an 'unknown' memory space.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98110 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/BasicStore.cpp

index d93a6658c681bc7f0b8bd9c9c6db9b5a524c1e3d..10136f3fc45b1db540a0abac33b20e888aaa67ff 100644 (file)
@@ -142,7 +142,8 @@ SVal BasicStoreManager::LazyRetrieve(Store store, const TypedRegion *R) {
 
   // Globals and parameters start with symbolic values.
   // Local variables initially are undefined.
-  if (VR->hasGlobalsOrParametersStorage())
+  if (VR->hasGlobalsOrParametersStorage() ||
+      isa<UnknownSpaceRegion>(VR->getMemorySpace()))
     return ValMgr.getRegionValueSymbolVal(R);
   return UndefinedVal();
 }