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

@@ -233,7 +233,7 @@ struct SynParserDiagConsumer: public DiagnosticConsumer {
StringRef FormatString,
ArrayRef<DiagnosticArgument> FormatArgs,
const DiagnosticInfo &Info,
StringRef currentPrimaryInput) override {
const SourceLoc defaultDiagnosticLoc) override {
assert(Kind != DiagnosticKind::Remark && "Shouldn't see this in parser.");
// The buffer where all char* will point into.
llvm::SmallString<256> Buffer;