forked from OSchip/llvm-project
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
This commit is contained in:
parent
5ccfc98d19
commit
8b2f5d3929
|
|
@ -1741,11 +1741,10 @@ void RegionStoreManager::RemoveDeadBindings(GRState &state, Stmt* Loc,
|
||||||
// for the other fields and elements around. The reason is that
|
// for the other fields and elements around. The reason is that
|
||||||
// pointer arithmetic can get us to the other fields or elements.
|
// pointer arithmetic can get us to the other fields or elements.
|
||||||
// FIXME: add an assertion that this is always true.
|
// FIXME: add an assertion that this is always true.
|
||||||
VisitFlag NewVisit =
|
|
||||||
isa<FieldRegion>(R) || isa<ElementRegion>(R) || isa<ObjCIvarRegion>(R)
|
assert(isa<FieldRegion>(R) || isa<ElementRegion>(R)
|
||||||
? VisitedFromSuperRegion : VisitedFromSubRegion;
|
|| isa<ObjCIvarRegion>(R));
|
||||||
|
WorkList.push_back(RBDItem(state_N, superR, VisitedFromSuperRegion));
|
||||||
WorkList.push_back(RBDItem(state_N, superR, NewVisit));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue