Do not prepend the keyword "[CHECKER]" to checker messages when using
a PathDiagnosticClient.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48996 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/GRSimpleVals.cpp b/lib/Analysis/GRSimpleVals.cpp
index fdb3ecd..a99cf31 100644
--- a/lib/Analysis/GRSimpleVals.cpp
+++ b/lib/Analysis/GRSimpleVals.cpp
@@ -76,8 +76,11 @@
                  ITERATOR I, ITERATOR E, const char* msg) {
  
   std::ostringstream Out;
-  Out << "[CHECKER] " << msg;
-  msg = Out.str().c_str();
+
+  if (!PD) {
+    Out << "[CHECKER] " << msg;
+    msg = Out.str().c_str();
+  }
   
   bool isFirst = true;
   unsigned ErrorDiag = 0;