[cfe-commits] r59521 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Tue Nov 18 05:11:05 PST 2008
Author: zhongxingxu
Date: Tue Nov 18 07:11:04 2008
New Revision: 59521
URL: http://llvm.org/viewvc/llvm-project?rev=59521&view=rev
Log:
handle the case that the array element is of structure type when bind the whole array to a single value (for example, UnknownVal, UndefinedVal).
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=59521&r1=59520&r2=59521&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Tue Nov 18 07:11:04 2008
@@ -569,7 +569,10 @@
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);
}
}
More information about the cfe-commits
mailing list