summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/Store.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-11-25 01:32:22 +0000
committerTed Kremenek <kremenek@apple.com>2009-11-25 01:32:22 +0000
commit10a50e7371cef890f9448ab4e86cefa52a88fd16 (patch)
tree41bdbbdf24fa44a970a3cf3388ac24ab967ec06b /clang/lib/Analysis/Store.cpp
parent906d871e6c9266d0a9a69df8cbe0ada689f63d21 (diff)
downloadbcm5719-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.cpp4
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.
OpenPOWER on IntegriCloud