diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h index 0c233f72dd10..95b1a3a6c5a5 100644 --- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h +++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h @@ -256,11 +256,6 @@ class RetainCountChecker mutable std::unique_ptr overAutorelease, returnNotOwnedForOwned; mutable std::unique_ptr leakWithinFunction, leakAtReturn; - typedef llvm::DenseMap SymbolTagMap; - - // This map is only used to ensure proper deletion of any allocated tags. - mutable SymbolTagMap DeadSymbolTags; - mutable std::unique_ptr Summaries; public: static constexpr const char *DeallocTagDescription = "DeallocSent"; @@ -273,7 +268,6 @@ public: RetainCountChecker() {} - ~RetainCountChecker() override { DeleteContainerSeconds(DeadSymbolTags); } CFRefBug *getLeakWithinFunctionBug(const LangOptions &LOpts) const;