diff options
author | Jordy Rose <jediknil@belkadan.com> | 2010-08-20 01:05:59 +0000 |
---|---|---|
committer | Jordy Rose <jediknil@belkadan.com> | 2010-08-20 01:05:59 +0000 |
commit | 59b6dca7e5160d6f2aff42b1cf077d1cbd64e330 (patch) | |
tree | 253f87fb8ba9281a194ea8e321109a61983d39d9 /lib/Checker/RegionStore.cpp | |
parent | 2283d79155a3e82442fce124ce5fd704ca138801 (diff) |
Handle nested compound values in BindArray for multidimensional arrays. Fixes PR7945.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/RegionStore.cpp')
-rw-r--r-- | lib/Checker/RegionStore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Checker/RegionStore.cpp b/lib/Checker/RegionStore.cpp index d6422ab338..ab3234774f 100644 --- a/lib/Checker/RegionStore.cpp +++ b/lib/Checker/RegionStore.cpp @@ -1504,6 +1504,8 @@ Store RegionStoreManager::BindArray(Store store, const TypedRegion* R, if (ElementTy->isStructureOrClassType()) store = BindStruct(store, ER, *VI); + else if (ElementTy->isArrayType()) + store = BindArray(store, ER, *VI); else store = Bind(store, ValMgr.makeLoc(ER), *VI); } |