[cfe-commits] r71353 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Sat May 9 03:03:14 PDT 2009
Author: zhongxingxu
Date: Sat May 9 05:03:08 2009
New Revision: 71353
URL: http://llvm.org/viewvc/llvm-project?rev=71353&view=rev
Log:
Remove the case for casting to compatible type in
RegionStoreManager::CastRegion(). This case should be subsumed by others.
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=71353&r1=71352&r2=71353&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Sat May 9 05:03:08 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 cfe-commits
mailing list