diff options
Diffstat (limited to 'lib/Lex')
-rw-r--r-- | lib/Lex/Lexer.cpp | 4 | ||||
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index eebdd1e2eb..4c25287b07 100644 --- a/lib/Lex/Lexer.cpp +++ b/lib/Lex/Lexer.cpp @@ -309,9 +309,9 @@ SourceLocation Lexer::getSourceLocation(const char *Loc) const { /// Diag - Forwarding function for diagnostics. This translate a source /// position in the current buffer into a SourceLocation object for rendering. -DiagnosticInfo Lexer::Diag(const char *Loc, unsigned DiagID) const { +DiagnosticBuilder Lexer::Diag(const char *Loc, unsigned DiagID) const { if (LexingRawMode && Diagnostic::isBuiltinNoteWarningOrExtension(DiagID)) - return DiagnosticInfo(0, FullSourceLoc(), 0); + return DiagnosticBuilder(); return PP->Diag(getSourceLocation(Loc), DiagID); } diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 3d0b4d0da5..5f8f3517fe 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -117,11 +117,11 @@ Preprocessor::~Preprocessor() { /// Diag - Forwarding function for diagnostics. This emits a diagnostic at /// the specified Token's location, translating the token's start /// position in the current buffer into a SourcePosition object for rendering. -DiagnosticInfo Preprocessor::Diag(SourceLocation Loc, unsigned DiagID) { +DiagnosticBuilder Preprocessor::Diag(SourceLocation Loc, unsigned DiagID) { return Diags.Report(getFullLoc(Loc), DiagID); } -DiagnosticInfo Preprocessor::Diag(const Token &Tok, unsigned DiagID) { +DiagnosticBuilder Preprocessor::Diag(const Token &Tok, unsigned DiagID) { return Diags.Report(getFullLoc(Tok.getLocation()), DiagID); } |