handle the case that the array element is of structure type when bind the whole array to a single value (for example, UnknownVal, UndefinedVal).

llvm-svn: 59521
This commit is contained in:
Zhongxing Xu 2008-11-18 13:11:04 +00:00
parent 13020d22da
commit f87a7abcd4
1 changed files with 4 additions and 1 deletions

View File

@ -569,7 +569,10 @@ Store RegionStoreManager::BindArrayToVal(Store store, const TypedRegion* BaseR,
ElementRegion* ER = MRMgr.getElementRegion(Idx, BaseR);
store = Bind(store, loc::MemRegionVal(ER), V);
if (CAT->getElementType()->isStructureType())
store = BindStructToVal(store, ER, V);
else
store = Bind(store, loc::MemRegionVal(ER), V);
}
}