mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 17:07:36 +08:00
Enhance basic store to also lazily symbolicate VarRegions
with an 'unknown' memory space. llvm-svn: 98110
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user