From: Zhongxing Xu Date: Sun, 14 Dec 2008 03:14:52 +0000 (+0000) Subject: I think we should getRValueType here. The lvaluetype of an array region is 'pointer... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ef9372b726081d737f64fde5fb2c6930fa31bdc;p=clang 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 --- 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());