diff options
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 433b05d996..4c54721e34 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -751,8 +751,11 @@ SVal RegionStoreManager::Retrieve(const GRState* St, Loc L, QualType T) { return UndefinedVal(); } - // All other values are symbolic. - return SVal::GetRValueSymbolVal(getSymbolManager(), R); + // All other integer values are symbolic. + if (Loc::IsLocType(RTy) || RTy->isIntegerType()) + return SVal::GetRValueSymbolVal(getSymbolManager(), R); + else + return UnknownVal(); } SVal RegionStoreManager::RetrieveStruct(const GRState* St,const TypedRegion* R){ |