diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-03-11 09:10:39 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-03-11 09:10:39 +0000 |
commit | 2e3f73b963b5831d6230f69e157b0964b11eff91 (patch) | |
tree | 69de419ae78f27cd6a20dca75b1849e0d359e318 | |
parent | c45a8253cadb640dee1d8f23fba4a6c6f8da27f4 (diff) |
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
-rw-r--r-- | include/clang/Analysis/PathSensitive/MemRegion.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |