All usages of isSubRegionOf separately check for reflexive case, and in any case, set theory tells us that each set is a subset of itself.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
Yeah, i guess we thought that only SubRegion shall ever be a sub-region. But in fact we have too much inheritance-for-code-reuse in MemRegion hierarchy for those abstract classes to have any deep meaning.
lib/StaticAnalyzer/Core/MemRegion.cpp | ||
---|---|---|
106–107 | Change this to do..while to avoid the initial check? |
Change this to do..while to avoid the initial check?