I think we should getRValueType here. The lvaluetype of an array region is 'pointer to array'.
llvm-svn: 61003
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index af1bebf..b78c2ed 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/lib/Analysis/RegionStore.cpp
@@ -779,7 +779,7 @@
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());