diff --git a/clang/include/clang/Checker/PathSensitive/MemRegion.h b/clang/include/clang/Checker/PathSensitive/MemRegion.h index 82b0c14f20cb..6cb68e6beb8f 100644 --- a/clang/include/clang/Checker/PathSensitive/MemRegion.h +++ b/clang/include/clang/Checker/PathSensitive/MemRegion.h @@ -841,6 +841,8 @@ public: return Ex->getType(); } + void dumpToStream(llvm::raw_ostream& os) const; + void Profile(llvm::FoldingSetNodeID &ID) const; static bool classof(const MemRegion* R) { diff --git a/clang/lib/Checker/MemRegion.cpp b/clang/lib/Checker/MemRegion.cpp index ddcb7d2687a6..4414c1a57a6d 100644 --- a/clang/lib/Checker/MemRegion.cpp +++ b/clang/lib/Checker/MemRegion.cpp @@ -407,6 +407,10 @@ void CompoundLiteralRegion::dumpToStream(llvm::raw_ostream& os) const { os << "{ " << (void*) CL << " }"; } +void CXXObjectRegion::dumpToStream(llvm::raw_ostream &os) const { + os << "temp_object"; +} + void CXXThisRegion::dumpToStream(llvm::raw_ostream &os) const { os << "this"; }