mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user