aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/BasicStore.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-03-10 00:18:08 +0000
committerTed Kremenek <kremenek@apple.com>2010-03-10 00:18:08 +0000
commit30986dd4b633a629f38e4806d9e8d16cb7b7bed7 (patch)
tree8212afd77383e03994a3f5a0e02ec3cffb4e8528 /lib/Checker/BasicStore.cpp
parentd58562e84f54f0d2c9f2cd0f8b589201f3add2ec (diff)
Enhance basic store to also lazily symbolicate VarRegions
with an 'unknown' memory space. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/BasicStore.cpp')
-rw-r--r--lib/Checker/BasicStore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Checker/BasicStore.cpp b/lib/Checker/BasicStore.cpp
index d93a6658c6..10136f3fc4 100644
--- a/lib/Checker/BasicStore.cpp
+++ b/lib/Checker/BasicStore.cpp
@@ -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();
}