aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-12-14 03:14:52 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-12-14 03:14:52 +0000
commit2ef9372b726081d737f64fde5fb2c6930fa31bdc (patch)
tree18e075ab918c998a9e54b6aac900b52607ef5860 /lib/Analysis/RegionStore.cpp
parent383ea9d07d54fdc3d3e9d62fb774366f16216a61 (diff)
I think we should getRValueType here. The lvaluetype of an array region is 'pointer to array'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r--lib/Analysis/RegionStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp
index af1bebff80..b78c2edb14 100644
--- a/lib/Analysis/RegionStore.cpp
+++ b/lib/Analysis/RegionStore.cpp
@@ -779,7 +779,7 @@ Store RegionStoreManager::InitializeArray(Store store, const TypedRegion* R,
SVal Init) {
// FIXME: Verify we should use getLValueType or getRValueType.
- QualType T = R->getLValueType(getContext());
+ QualType T = R->getRValueType(getContext());
assert(T->isArrayType());
ConstantArrayType* CAT = cast<ConstantArrayType>(T.getTypePtr());