[cfe-commits] r66654 - /cfe/trunk/lib/Analysis/RegionStore.cpp

Zhongxing Xu xuzhongxing at gmail.com
Wed Mar 11 02:07:49 PDT 2009


Author: zhongxingxu
Date: Wed Mar 11 04:07:35 2009
New Revision: 66654

URL: http://llvm.org/viewvc/llvm-project?rev=66654&view=rev
Log:
Do not stipulate the record type is a definition in BindStruct().

Modified:
    cfe/trunk/lib/Analysis/RegionStore.cpp

Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=66654&r1=66653&r2=66654&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Wed Mar 11 04:07:35 2009
@@ -1129,7 +1129,9 @@
 
   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);





More information about the cfe-commits mailing list