Pass defaultDiagnosticLoc to handleDiagnostic, not currentPrimaryInput.

This commit is contained in:
David Ungar
2019-04-02 22:27:55 -07:00
parent 3b8b903807
commit c139c5909a
23 changed files with 134 additions and 132 deletions

View File

@@ -50,7 +50,7 @@ public:
StringRef FormatString,
ArrayRef<DiagnosticArgument> FormatArgs,
const DiagnosticInfo &Info,
StringRef currentPrimaryInput) override {
const SourceLoc defaultDiagnosticLoc) override {
// FIXME: Print location info if available.
switch (Kind) {
case DiagnosticKind::Error: OS << "error: "; break;