diff options
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); |