From 8b2f5d39292cc422a25b1ba5103173f2c09d72d0 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sat, 17 Oct 2009 07:32:08 +0000 Subject: [PATCH] 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 --- clang/lib/Analysis/RegionStore.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index 18d58ab10f69..fe142af07a7d 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(R) || isa(R) || isa(R) - ? VisitedFromSuperRegion : VisitedFromSubRegion; - - WorkList.push_back(RBDItem(state_N, superR, NewVisit)); + + assert(isa(R) || isa(R) + || isa(R)); + WorkList.push_back(RBDItem(state_N, superR, VisitedFromSuperRegion)); } }