Also show notes about the taken path in TextPathDiagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120783 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Checker/TextPathDiagnostics.cpp b/lib/Checker/TextPathDiagnostics.cpp
index 83ff7a4..0ed03e4 100644
--- a/lib/Checker/TextPathDiagnostics.cpp
+++ b/lib/Checker/TextPathDiagnostics.cpp
@@ -38,7 +38,7 @@
     return "TextPathDiagnostics";
   }
 
-  PathGenerationScheme getGenerationScheme() const { return Extensive; }
+  PathGenerationScheme getGenerationScheme() const { return Minimal; }
   bool supportsLogicalOpControlFlow() const { return true; }
   bool supportsAllBlockEdges() const { return true; }
   virtual bool useVerboseDescription() const { return true; }
@@ -62,11 +62,8 @@
   }
 
   for (PathDiagnostic::const_iterator I=D->begin(), E=D->end(); I != E; ++I) {
-    if (isa<PathDiagnosticEventPiece>(*I)) {
-      PathDiagnosticEventPiece &event = cast<PathDiagnosticEventPiece>(*I);
-      unsigned diagID = Diag.getDiagnosticIDs()->getCustomDiagID(
-                                        DiagnosticIDs::Note, event.getString());
-      Diag.Report(event.getLocation().asLocation(), diagID);
-    }
+    unsigned diagID = Diag.getDiagnosticIDs()->getCustomDiagID(
+                                           DiagnosticIDs::Note, I->getString());
+    Diag.Report(I->getLocation().asLocation(), diagID);
   }
 }