Enhance basic store to also lazily symbolicate VarRegions

with an 'unknown' memory space.

llvm-svn: 98110
This commit is contained in:
Ted Kremenek 2010-03-10 00:18:08 +00:00
parent e620178436
commit 7de5f32479
1 changed files with 2 additions and 1 deletions

View 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();
}