From 204b2fed909b1eabea7aeb6caadd7cff718edee5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Nov 2008 21:48:13 +0000 Subject: Remove the last of the old-style Preprocessor::Diag methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59554 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/PreprocessorLexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Lex/PreprocessorLexer.cpp') diff --git a/lib/Lex/PreprocessorLexer.cpp b/lib/Lex/PreprocessorLexer.cpp index 3c5d81b8a7..20bce413b7 100644 --- a/lib/Lex/PreprocessorLexer.cpp +++ b/lib/Lex/PreprocessorLexer.cpp @@ -24,7 +24,7 @@ void PreprocessorLexer::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg) const { if (LexingRawMode && Diagnostic::isBuiltinNoteWarningOrExtension(DiagID)) return; - PP->Diag(Loc, DiagID, Msg); + PP->Diag(Loc, DiagID) << Msg; } /// LexIncludeFilename - After the preprocessor has parsed a #include, lex and -- cgit v1.2.1