]> granicus.if.org Git - clang/commitdiff
Add missing case in switch statement.
authorTed Kremenek <kremenek@apple.com>
Wed, 25 Nov 2009 23:58:21 +0000 (23:58 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 25 Nov 2009 23:58:21 +0000 (23:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89903 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/Store.cpp

index 14f55fd75fafdebda6619d67bdc3bbc61e50fdfa..2fd573c4764d872e67420e442b3115c8674051ff 100644 (file)
@@ -87,7 +87,8 @@ const MemRegion *StoreManager::CastRegion(const MemRegion *R, QualType CastToTy)
     }
     
     case MemRegion::FunctionTextRegionKind:
-    case MemRegion::BlockTextRegionKind: {
+    case MemRegion::BlockTextRegionKind:
+    case MemRegion::BlockDataRegionKind: {
       // 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.