[cfe-commits] r71357 - /cfe/trunk/lib/Analysis/RegionStore.cpp

Zhongxing Xu xuzhongxing at gmail.com
Sat May 9 06:36:17 PDT 2009


Author: zhongxingxu
Date: Sat May  9 08:36:16 2009
New Revision: 71357

URL: http://llvm.org/viewvc/llvm-project?rev=71357&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/Analysis/RegionStore.cpp

Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=71357&r1=71356&r2=71357&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Sat May  9 08:36:16 2009
@@ -371,10 +371,6 @@
   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:





More information about the cfe-commits mailing list