diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-09-21 22:58:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-09-21 22:58:52 +0000 |
commit | 69181a863c9a87ea84e96157191f855043b86cfb (patch) | |
tree | f16f4671b1101409e4934e2c380674ed5a6f45b4 /lib/Analysis/RegionStore.cpp | |
parent | cfd2f625318ddce258e4c243b54492235ecf0e02 (diff) |
Provide intermediate solution to handling assignments to structs via an
integer pointer. For now just invalidate the fields of the struct.
This addresses: <rdar://problem/7185607> [RegionStore] support invalidation of bit fields using integer assignment
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 4186690939..f4f2fecc21 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -1302,6 +1302,10 @@ const GRState *RegionStoreManager::Bind(const GRState *state, Loc L, SVal V) { ValMgr.getSValuator().EvalCast(V, state, superTy, erTy); return Bind(cr.getState(), loc::MemRegionVal(superR), cr.getSVal()); } + // For now, just invalidate the fields of the struct/union/class. + // FIXME: Precisely handle the fields of the record. + if (superTy->isRecordType()) + return InvalidateRegion(state, superR, NULL, 0); } } } |