diff options
-rw-r--r-- | include/clang/Analysis/PathSensitive/MemRegion.h | 2 | ||||
-rw-r--r-- | lib/Analysis/MemRegion.cpp | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/Analysis/PathSensitive/MemRegion.h b/include/clang/Analysis/PathSensitive/MemRegion.h index 839b427c05..efe0b9a19c 100644 --- a/include/clang/Analysis/PathSensitive/MemRegion.h +++ b/include/clang/Analysis/PathSensitive/MemRegion.h @@ -221,6 +221,8 @@ class AnonTypedRegion : public TypedRegion { public: + void print(llvm::raw_ostream& os) const; + QualType getRValueType(ASTContext&) const { return T; } diff --git a/lib/Analysis/MemRegion.cpp b/lib/Analysis/MemRegion.cpp index 898aff031f..eafeee66d5 100644 --- a/lib/Analysis/MemRegion.cpp +++ b/lib/Analysis/MemRegion.cpp @@ -135,6 +135,12 @@ void AllocaRegion::print(llvm::raw_ostream& os) const { os << "alloca{" << (void*) Ex << ',' << Cnt << '}'; } +void AnonTypedRegion::print(llvm::raw_ostream& os) const { + os << "anon_type{" << T.getAsString() << ','; + getSuperRegion()->print(os); + os << '}'; +} + void VarRegion::print(llvm::raw_ostream& os) const { os << cast<VarDecl>(D)->getNameAsString(); } |