r350868 - [analyzer] [NFC] [RetainCountChecker] Remove dead unused map
George Karpenkov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 10 10:16:10 PST 2019
Author: george.karpenkov
Date: Thu Jan 10 10:16:10 2019
New Revision: 350868
URL: http://llvm.org/viewvc/llvm-project?rev=350868&view=rev
Log:
[analyzer] [NFC] [RetainCountChecker] Remove dead unused map
Differential Revision: https://reviews.llvm.org/D56402
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h?rev=350868&r1=350867&r2=350868&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h Thu Jan 10 10:16:10 2019
@@ -256,11 +256,6 @@ class RetainCountChecker
mutable std::unique_ptr<CFRefBug> overAutorelease, returnNotOwnedForOwned;
mutable std::unique_ptr<CFRefBug> leakWithinFunction, leakAtReturn;
- typedef llvm::DenseMap<SymbolRef, const CheckerProgramPointTag *> SymbolTagMap;
-
- // This map is only used to ensure proper deletion of any allocated tags.
- mutable SymbolTagMap DeadSymbolTags;
-
mutable std::unique_ptr<RetainSummaryManager> Summaries;
public:
static constexpr const char *DeallocTagDescription = "DeallocSent";
@@ -273,7 +268,6 @@ public:
RetainCountChecker() {}
- ~RetainCountChecker() override { DeleteContainerSeconds(DeadSymbolTags); }
CFRefBug *getLeakWithinFunctionBug(const LangOptions &LOpts) const;
More information about the cfe-commits
mailing list