]> granicus.if.org Git - clang/commitdiff
Do not stipulate the record type is a definition in BindStruct().
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 11 Mar 2009 09:07:35 +0000 (09:07 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 11 Mar 2009 09:07:35 +0000 (09:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66654 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionStore.cpp

index 883821128af9b8cf6106c9d2c2f23e59e9bf4c16..84523dc5cf04d65fb1a28b09985ac9c5bd47f324 100644 (file)
@@ -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);