diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-11-25 01:32:22 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-11-25 01:32:22 +0000 |
commit | 10a50e7371cef890f9448ab4e86cefa52a88fd16 (patch) | |
tree | 41bdbbdf24fa44a970a3cf3388ac24ab967ec06b /clang/lib/Analysis/Store.cpp | |
parent | 906d871e6c9266d0a9a69df8cbe0ada689f63d21 (diff) | |
download | bcm5719-llvm-10a50e7371cef890f9448ab4e86cefa52a88fd16.tar.gz bcm5719-llvm-10a50e7371cef890f9448ab4e86cefa52a88fd16.zip |
Split CodeTextRegion into FunctionTextRegion and BlockTextRegion. This a precursor to having basic static analysis support for blocks.
llvm-svn: 89828
Diffstat (limited to 'clang/lib/Analysis/Store.cpp')
-rw-r--r-- | clang/lib/Analysis/Store.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Analysis/Store.cpp b/clang/lib/Analysis/Store.cpp index 4183a73158b..14f55fd75fa 100644 --- a/clang/lib/Analysis/Store.cpp +++ b/clang/lib/Analysis/Store.cpp @@ -85,7 +85,9 @@ const MemRegion *StoreManager::CastRegion(const MemRegion *R, QualType CastToTy) assert(0 && "Invalid region cast"); break; } - case MemRegion::CodeTextRegionKind: { + + case MemRegion::FunctionTextRegionKind: + case MemRegion::BlockTextRegionKind: { // CodeTextRegion should be cast to only a function or block pointer type, // although they can in practice be casted to anything, e.g, void*, char*, // etc. |