summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-10-17 07:32:08 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-10-17 07:32:08 +0000
commit8b2f5d39292cc422a25b1ba5103173f2c09d72d0 (patch)
tree94dc653ab1f695cb28fd73fa2bd4f4252e0e6d87 /clang/lib/Analysis/RegionStore.cpp
parent5ccfc98d197f32a6fb4103d07dfd9325500bb4b7 (diff)
downloadbcm5719-llvm-8b2f5d39292cc422a25b1ba5103173f2c09d72d0.tar.gz
bcm5719-llvm-8b2f5d39292cc422a25b1ba5103173f2c09d72d0.zip
Actually all regions whose super region is not MemSpaceRegion are of these 3
kinds. This means we are visiting all regions 'from super region'. llvm-svn: 84319
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r--clang/lib/Analysis/RegionStore.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index 18d58ab10f6..fe142af07a7 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/lib/Analysis/RegionStore.cpp
@@ -1741,11 +1741,10 @@ void RegionStoreManager::RemoveDeadBindings(GRState &state, Stmt* Loc,
// for the other fields and elements around. The reason is that
// pointer arithmetic can get us to the other fields or elements.
// FIXME: add an assertion that this is always true.
- VisitFlag NewVisit =
- isa<FieldRegion>(R) || isa<ElementRegion>(R) || isa<ObjCIvarRegion>(R)
- ? VisitedFromSuperRegion : VisitedFromSubRegion;
-
- WorkList.push_back(RBDItem(state_N, superR, NewVisit));
+
+ assert(isa<FieldRegion>(R) || isa<ElementRegion>(R)
+ || isa<ObjCIvarRegion>(R));
+ WorkList.push_back(RBDItem(state_N, superR, VisitedFromSuperRegion));
}
}
OpenPOWER on IntegriCloud