forked from OSchip/llvm-project
Reenable using the PathDiagnosticClient for BugReports without paths.
llvm-svn: 49934
This commit is contained in:
parent
cf9e9c5554
commit
bf27dc9659
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue