From: Zhongxing Xu Date: Sat, 9 May 2009 13:36:16 +0000 (+0000) Subject: Do not create a TypedViewRegion when the base struct region is a symbolic X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a9bf4a768539a40344e809c52a6eb862f4145ac;p=clang 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 --- 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(BaseL).getRegion(); - if (const SymbolicRegion* SR = dyn_cast(BaseR)) { - SymbolRef Sym = SR->getSymbol(); - BaseR = MRMgr.getTypedViewRegion(Sym->getType(getContext()), SR); - } break; case loc::GotoLabelKind: