aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-05-09 13:36:16 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-05-09 13:36:16 +0000
commit8a9bf4a768539a40344e809c52a6eb862f4145ac (patch)
treea1c2021360ad3031edbd1188f31bff15737f3630 /lib/Analysis/RegionStore.cpp
parent5e8008e8094c115ae0faacc7a3a56fe5aae0d7b9 (diff)
Do not create a TypedViewRegion when the base struct region is a symbolic
region. In the future we may set the cast-to type as the same time. But for now, we simply leave it as it is. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r--lib/Analysis/RegionStore.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp
index 354ad5c57a..aa09a60deb 100644
--- a/lib/Analysis/RegionStore.cpp
+++ b/lib/Analysis/RegionStore.cpp
@@ -371,10 +371,6 @@ SVal RegionStoreManager::getLValueFieldOrIvar(const GRState* St, SVal Base,
switch (BaseL.getSubKind()) {
case loc::MemRegionKind:
BaseR = cast<loc::MemRegionVal>(BaseL).getRegion();
- if (const SymbolicRegion* SR = dyn_cast<SymbolicRegion>(BaseR)) {
- SymbolRef Sym = SR->getSymbol();
- BaseR = MRMgr.getTypedViewRegion(Sym->getType(getContext()), SR);
- }
break;
case loc::GotoLabelKind: