mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Pass defaultDiagnosticLoc to handleDiagnostic, not currentPrimaryInput.
This commit is contained in:
@@ -77,7 +77,7 @@ void EditorDiagConsumer::getAllDiagnostics(
|
||||
void EditorDiagConsumer::handleDiagnostic(
|
||||
SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
|
||||
StringRef FormatString, ArrayRef<DiagnosticArgument> FormatArgs,
|
||||
const DiagnosticInfo &Info, StringRef currentPrimaryInput) {
|
||||
const DiagnosticInfo &Info, const SourceLoc defaultDiagnosticLoc) {
|
||||
|
||||
if (Kind == DiagnosticKind::Error) {
|
||||
HadAnyError = true;
|
||||
|
||||
Reference in New Issue
Block a user