diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-03-11 09:07:35 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-03-11 09:07:35 +0000 |
commit | c45a8253cadb640dee1d8f23fba4a6c6f8da27f4 (patch) | |
tree | 9fb93987f4b460d9520add7f990923a9b21802a3 /lib/Analysis/RegionStore.cpp | |
parent | e3fedbeee8a014cd4f4e7cad8e7f6059eae12410 (diff) |
Do not stipulate the record type is a definition in BindStruct().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 883821128a..84523dc5cf 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -1129,7 +1129,9 @@ RegionStoreManager::BindStruct(const GRState* St, const TypedRegion* R, SVal V){ RecordType* RT = cast<RecordType>(T.getTypePtr()); RecordDecl* RD = RT->getDecl(); - assert(RD->isDefinition()); + + if (!RD->isDefinition()) + return St; if (V.isUnknown()) return KillStruct(St, R); |