summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-12-13 19:24:37 +0000
committerTed Kremenek <kremenek@apple.com>2008-12-13 19:24:37 +0000
commitf065b15f7d47d7442b5d1641b97d321207e87b0a (patch)
tree053b53e504863307b5c5a814f59f18bcb9e7e6b3 /clang/lib/Sema/SemaDecl.cpp
parente69336c22d289f8e902ef87b13603fb264e868d0 (diff)
downloadbcm5719-llvm-f065b15f7d47d7442b5d1641b97d321207e87b0a.tar.gz
bcm5719-llvm-f065b15f7d47d7442b5d1641b97d321207e87b0a.zip
A series of cleanups/fixes motivated by <rdar://problem/6442306>:
GRExprEngine (VisitCast): - When using StoreManager::CastRegion, always use the state and value it returns to generate the next node. Failure to do so means that region values returned that don't require the state to be modified will get ignored. MemRegion: - Tighten the interface for ElementRegion. Now ElementRegion can only be created with a super region that is a 'TypedRegion' instead of any MemRegion. Code in BasicStoreManager/RegionStoreManager already assumed this, but it would result in a dynamic assertion check (and crash) rather than just having the compiler forbid the construction of such regions. - Added ElementRegion::getArrayRegion() to return the 'typed version' of an ElementRegion's super region. - Removed bogus assertion in ElementRegion::getType() that assumed that the super region was an AnonTypedRegion. All that matters is that it is a TypedRegion, which is now true all the time by design. BasicStore: - Modified getLValueElement() to check if the 'array' region is a TypedRegion before creating an ElementRegion. This conforms to the updated interface for ElementRegion. RegionStore: - In ArrayToPointer() gracefully handle things we don't reason about, and only create an ElementRegion if the array region is indeed a TypedRegion. llvm-svn: 60990
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud