]> granicus.if.org Git - clang/commitdiff
[analyzer] Diagnostics - do not try to cleanup the path with macros, it
authorAnna Zaks <ganna@apple.com>
Thu, 1 Mar 2012 01:30:58 +0000 (01:30 +0000)
committerAnna Zaks <ganna@apple.com>
Thu, 1 Mar 2012 01:30:58 +0000 (01:30 +0000)
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

lib/StaticAnalyzer/Core/BugReporter.cpp

index e26b1cc7ac9c6217d0b92078338bbc86009a170a..833c29165d9d619b1676990e0b5844109f9c50d4 100644 (file)
@@ -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);
   }
 }