From ff8d204dcf919116bf11dd15c85a8e0791a9028b Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Mon, 9 Mar 2009 09:31:22 +0000 Subject: [PATCH] Only track integer and pointer values. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66419 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/RegionStore.cpp | 7 +++++-- 1 file 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){ -- 2.40.0