Reenable using the PathDiagnosticClient for BugReports without paths.

llvm-svn: 49934
This commit is contained in:
Ted Kremenek 2008-04-18 22:11:59 +00:00
parent cf9e9c5554
commit bf27dc9659
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}