From: Zhongxing Xu Date: Mon, 9 Mar 2009 09:31:22 +0000 (+0000) Subject: Only track integer and pointer values. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff8d204dcf919116bf11dd15c85a8e0791a9028b;p=clang Only track integer and pointer values. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66419 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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){