]> granicus.if.org Git - clang/commitdiff
We do not require the super region of element region be typed. So do not
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 30 Jun 2009 07:41:27 +0000 (07:41 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 30 Jun 2009 07:41:27 +0000 (07:41 +0000)
create TypedViewRegion for it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74516 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicStore.cpp

index 368345dfe453a6d7b35ef4aa3839f7964b83e26a..56cf799943e0b978a93657c8fabacb00a9f70c78 100644 (file)
@@ -198,7 +198,7 @@ SVal BasicStoreManager::getLValueElement(const GRState *state,
     return Base;
   
   Loc BaseL = cast<Loc>(Base);  
-  const TypedRegion* BaseR = 0;
+  const MemRegion* BaseR = 0;
   
   switch(BaseL.getSubKind()) {
     case loc::GotoLabelKind:
@@ -223,8 +223,7 @@ SVal BasicStoreManager::getLValueElement(const GRState *state,
       }
       
       if (const SymbolicRegion* SR = dyn_cast<SymbolicRegion>(R)) {
-        SymbolRef Sym = SR->getSymbol();
-        BaseR = MRMgr.getTypedViewRegion(Sym->getType(getContext()), SR);
+        BaseR = SR;
       }
       
       break;