diff options
-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 { |