aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRSimpleVals.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-31 20:42:43 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-31 20:42:43 +0000
commit6bb205c469e0a6c73b7979fdbcbb2488b088a66e (patch)
tree0c541ec26ec4d2eeaa9eeb99c3a4847e3bb39664 /lib/Analysis/GRSimpleVals.cpp
parentff721524ec582abe6667add99c360e5ec247c736 (diff)
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
Diffstat (limited to 'lib/Analysis/GRSimpleVals.cpp')
-rw-r--r--lib/Analysis/GRSimpleVals.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Analysis/GRSimpleVals.cpp b/lib/Analysis/GRSimpleVals.cpp
index fdb3ecdf73..a99cf31215 100644
--- a/lib/Analysis/GRSimpleVals.cpp
+++ b/lib/Analysis/GRSimpleVals.cpp
@@ -76,8 +76,11 @@ void EmitWarning(Diagnostic& Diag, PathDiagnosticClient* PD,
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;