[llvm-branch-commits] [cfe-branch] r71376 - /cfe/branches/Apple/Dib/lib/Analysis/RegionStore.cpp

Mike Stump mrs at apple.com
Sat May 9 20:11:09 PDT 2009


Author: mrs
Date: Sat May  9 22:11:07 2009
New Revision: 71376

URL: http://llvm.org/viewvc/llvm-project?rev=71376&view=rev
Log:
Merge in 71353:

Remove the case for casting to compatible type in 
RegionStoreManager::CastRegion(). This case should be subsumed by others.

Modified:
    cfe/branches/Apple/Dib/lib/Analysis/RegionStore.cpp

Modified: cfe/branches/Apple/Dib/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/Analysis/RegionStore.cpp?rev=71376&r1=71375&r2=71376&view=diff

==============================================================================
--- cfe/branches/Apple/Dib/lib/Analysis/RegionStore.cpp (original)
+++ cfe/branches/Apple/Dib/lib/Analysis/RegionStore.cpp Sat May  9 22:11:07 2009
@@ -637,18 +637,10 @@
     return CastResult(state, R);
   }
 
-  // Assume we are casting from pointer to pointer. Other cases are handled
-  // elsewhere.
+  // Now assume we are casting from pointer to pointer. Other cases should
+  // already be handled.
   QualType PointeeTy = cast<PointerType>(ToTy.getTypePtr())->getPointeeType();
 
-  // Return the same region if the region types are compatible.
-  if (const TypedRegion* TR = dyn_cast<TypedRegion>(R)) {
-    QualType Ta = Ctx.getCanonicalType(TR->getLocationType(Ctx));
-
-    if (Ta == ToTy)
-      return CastResult(state, R);
-  }
-
   // Process region cast according to the kind of the region being cast.
   
 





More information about the llvm-branch-commits mailing list