summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-03-11 09:07:35 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-03-11 09:07:35 +0000
commitd2e89ae05545cc46838178e3aa787796a2c8bc79 (patch)
treefb88f794eee10a3c485d18861724c1f9ab169d9c /clang/lib/Analysis/RegionStore.cpp
parentbe69d60d54f8b190bfad7fb7701398fa1cde3b92 (diff)
downloadbcm5719-llvm-d2e89ae05545cc46838178e3aa787796a2c8bc79.tar.gz
bcm5719-llvm-d2e89ae05545cc46838178e3aa787796a2c8bc79.zip
Do not stipulate the record type is a definition in BindStruct().
llvm-svn: 66654
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r--clang/lib/Analysis/RegionStore.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index 883821128af..84523dc5cf0 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud