From 2ef9372b726081d737f64fde5fb2c6930fa31bdc Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sun, 14 Dec 2008 03:14:52 +0000 Subject: [PATCH] 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 --- lib/Analysis/RegionStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(T.getTypePtr()); -- 2.50.1