diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-10-17 07:32:08 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-10-17 07:32:08 +0000 |
commit | 8b2f5d39292cc422a25b1ba5103173f2c09d72d0 (patch) | |
tree | 94dc653ab1f695cb28fd73fa2bd4f4252e0e6d87 /clang/lib/Analysis/RegionStore.cpp | |
parent | 5ccfc98d197f32a6fb4103d07dfd9325500bb4b7 (diff) | |
download | bcm5719-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.cpp | 9 |
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)); } } |