Incomplete struct pointer can be used as a function argument.
llvm-svn: 59235
This commit is contained in:
parent
320902bcfc
commit
29188c2948
|
|
@ -301,7 +301,13 @@ Store RegionStoreManager::BindStruct(Store store, const TypedRegion* R, SVal V){
|
|||
|
||||
const RecordType* RT = cast<RecordType>(T.getTypePtr());
|
||||
RecordDecl* RD = RT->getDecl();
|
||||
assert(RD->isDefinition());
|
||||
|
||||
if (!RD->isDefinition()) {
|
||||
// This can only occur when a pointer of imcomplete struct type is used as a
|
||||
// function argument.
|
||||
assert(V.isUnknown());
|
||||
return store;
|
||||
}
|
||||
|
||||
RegionBindingsTy B = GetRegionBindings(store);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue