diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-18 22:11:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-18 22:11:59 +0000 |
commit | bf27dc96592592233a4a18c9c0233193f32eab70 (patch) | |
tree | f945382e4b1a8cceff090a05c54dc1236a7bdc19 /clang/lib | |
parent | cf9e9c5554b960f4513d321d6c8042d2c65785c4 (diff) | |
download | bcm5719-llvm-bf27dc96592592233a4a18c9c0233193f32eab70.tar.gz bcm5719-llvm-bf27dc96592592233a4a18c9c0233193f32eab70.zip |
Reenable using the PathDiagnosticClient for BugReports without paths.
llvm-svn: 49934
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index e69c5a6d3ff..b736282aea5 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/lib/Analysis/BugReporter.cpp @@ -422,6 +422,9 @@ void BugReporter::EmitWarning(BugReport& R) { unsigned ErrorDiag = Diag.getCustomDiagID(Diagnostic::Warning, os.str().c_str()); - - Diag.Report(L, ErrorDiag, NULL, 0, Beg, End - Beg); + + if (PD) + Diag.Report(PD, L, ErrorDiag, NULL, 0, Beg, End - Beg); + else + Diag.Report(L, ErrorDiag, NULL, 0, Beg, End - Beg); } |