diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-02-05 06:57:29 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-02-05 06:57:29 +0000 |
commit | 9103df1688c3fdd3b2b85bffc026c0f3a07e38b4 (patch) | |
tree | dbbf6758c4fe155e2be6f8364a9d82c9c7aa2038 /clang/lib/Analysis/RegionStore.cpp | |
parent | 7e1d2862ca99296f6bc0e09fc5e1e814ddc648a2 (diff) | |
download | bcm5719-llvm-9103df1688c3fdd3b2b85bffc026c0f3a07e38b4.tar.gz bcm5719-llvm-9103df1688c3fdd3b2b85bffc026c0f3a07e38b4.zip |
Make SymbolicRegion subclass TypedRegion, for symbols usually have types, so
do the symblic regions associated with them and we need them to be typed.
Current SymbolicRegion::getRValueType() method is very restricting. It may be
modified when we are more clear about what could be the types of symblic
regions.
BasicConstraintManager::Assume() is changed due to that now SymblicRegion is a
subclass of SubRegion.
llvm-svn: 63844
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index 8d36d10a8a5..e640087acba 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/lib/Analysis/RegionStore.cpp @@ -312,7 +312,8 @@ SVal RegionStoreManager::getLValueField(const GRState* St, SVal Base, break; case loc::SymbolValKind: - BaseR = MRMgr.getSymbolicRegion(cast<loc::SymbolVal>(&BaseL)->getSymbol()); + BaseR = MRMgr.getSymbolicRegion(cast<loc::SymbolVal>(&BaseL)->getSymbol(), + StateMgr.getSymbolManager()); break; case loc::GotoLabelKind: @@ -701,7 +702,8 @@ Store RegionStoreManager::Remove(Store store, Loc L) { if (isa<loc::MemRegionVal>(L)) R = cast<loc::MemRegionVal>(L).getRegion(); else if (isa<loc::SymbolVal>(L)) - R = MRMgr.getSymbolicRegion(cast<loc::SymbolVal>(L).getSymbol()); + R = MRMgr.getSymbolicRegion(cast<loc::SymbolVal>(L).getSymbol(), + StateMgr.getSymbolManager()); if (R) { RegionBindingsTy B = GetRegionBindings(store); |