diff options
author | Anna Zaks <ganna@apple.com> | 2012-03-01 01:30:58 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-03-01 01:30:58 +0000 |
commit | 3edf02f66d339a3ae6d06aeb96c78d9089b53bc1 (patch) | |
tree | 25012f14cfe4698652bb73ffe0512f8f2f93d3b4 | |
parent | 3f01c8a58b7b2d78303675182a8de6b7fbe45ae1 (diff) |
[analyzer] Diagnostics - do not try to cleanup the path with macros, it
will be done by the general cleanup later on.
A Patch by Ted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151784 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/StaticAnalyzer/Core/BugReporter.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index e26b1cc7ac..833c29165d 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1735,9 +1735,6 @@ static void CompactPathDiagnostic(PathDiagnostic &PD, const SourceManager& SM) { PD.getMutablePieces().clear(); for (PiecesTy::iterator I=Pieces.begin(), E=Pieces.end(); I!=E; ++I) { - if (PathDiagnosticMacroPiece *MP = dyn_cast<PathDiagnosticMacroPiece>(*I)) - if (!MP->containsEvent()) - continue; PD.getMutablePieces().push_back(*I); } } |