[cfe-commits] r66655 - /cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h
Zhongxing Xu
xuzhongxing at gmail.com
Wed Mar 11 02:10:49 PDT 2009
Author: zhongxingxu
Date: Wed Mar 11 04:10:39 2009
New Revision: 66655
URL: http://llvm.org/viewvc/llvm-project?rev=66655&view=rev
Log:
The RValueType of a TypedViewRegion should be the pointee type.
Modified:
cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h
Modified: cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h?rev=66655&r1=66654&r2=66655&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h Wed Mar 11 04:10:39 2009
@@ -252,7 +252,9 @@
void print(llvm::raw_ostream& os) const;
QualType getRValueType(ASTContext&) const {
- return T;
+ const PointerType* PTy = T->getAsPointerType();
+ assert(PTy);
+ return PTy->getPointeeType();
}
void Profile(llvm::FoldingSetNodeID& ID) const {
More information about the cfe-commits
mailing list