]> granicus.if.org Git - clang/commitdiff
Do not create a TypedViewRegion when the base struct region is a symbolic
authorZhongxing Xu <xuzhongxing@gmail.com>
Sat, 9 May 2009 13:36:16 +0000 (13:36 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sat, 9 May 2009 13:36:16 +0000 (13:36 +0000)
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

lib/Analysis/RegionStore.cpp

index 354ad5c57ab914113164f8d05a8699101aedefa0..aa09a60deb9d8b9afa54cfa7002936c29df47eb5 100644 (file)
@@ -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: