From 2e3f73b963b5831d6230f69e157b0964b11eff91 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Wed, 11 Mar 2009 09:10:39 +0000 Subject: [PATCH] The RValueType of a TypedViewRegion should be the pointee type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66655 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Analysis/PathSensitive/MemRegion.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/clang/Analysis/PathSensitive/MemRegion.h b/include/clang/Analysis/PathSensitive/MemRegion.h index d22dccc77c..10bef309ac 100644 --- a/include/clang/Analysis/PathSensitive/MemRegion.h +++ b/include/clang/Analysis/PathSensitive/MemRegion.h @@ -252,7 +252,9 @@ public: 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 { -- 2.50.1