]> granicus.if.org Git - clang/commitdiff
I think we should getRValueType here. The lvaluetype of an array region is 'pointer...
authorZhongxing Xu <xuzhongxing@gmail.com>
Sun, 14 Dec 2008 03:14:52 +0000 (03:14 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sun, 14 Dec 2008 03:14:52 +0000 (03:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61003 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionStore.cpp

index af1bebff80a7c086ffae41916996dba44d00826d..b78c2edb1449ad108e219174ad8ce31308efa797 100644 (file)
@@ -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());