[cfe-commits] r61003 - /cfe/trunk/lib/Analysis/RegionStore.cpp

Zhongxing Xu xuzhongxing at gmail.com
Sat Dec 13 19:14:53 PST 2008


Author: zhongxingxu
Date: Sat Dec 13 21:14:52 2008
New Revision: 61003

URL: http://llvm.org/viewvc/llvm-project?rev=61003&view=rev
Log:
I think we should getRValueType here. The lvaluetype of an array region is 'pointer to array'.

Modified:
    cfe/trunk/lib/Analysis/RegionStore.cpp

Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=61003&r1=61002&r2=61003&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Sat Dec 13 21:14:52 2008
@@ -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());





More information about the cfe-commits mailing list