diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-02-08 04:32:27 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-02-08 04:32:27 +0000 |
commit | eb2303c76971f3cc89bbb367ce77564ccb7042c1 (patch) | |
tree | 4ae1aced7e01059ddc006af161504980b84d17b1 /lib/StaticAnalyzer/Core | |
parent | 59a839c5a4eecfeb495fc64224f6a949d1c5b2da (diff) |
Refactor pieces of PathDiagnostic into its own data structure. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core')
-rw-r--r-- | lib/StaticAnalyzer/Core/PathDiagnostic.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/PathDiagnostic.cpp b/lib/StaticAnalyzer/Core/PathDiagnostic.cpp index 0d2c2e82d9..bdf2e16a4b 100644 --- a/lib/StaticAnalyzer/Core/PathDiagnostic.cpp +++ b/lib/StaticAnalyzer/Core/PathDiagnostic.cpp @@ -62,10 +62,12 @@ PathDiagnosticMacroPiece::~PathDiagnosticMacroPiece() { PathDiagnostic::PathDiagnostic() : Size(0) {} -PathDiagnostic::~PathDiagnostic() { - for (iterator I = begin(), E = end(); I != E; ++I) delete &*I; +PathPieces::~PathPieces() { + for (iterator I = begin(), E = end(); I != E; ++I) delete *I; } +PathDiagnostic::~PathDiagnostic() {} + void PathDiagnostic::resetPath(bool deletePieces) { Size = 0; |