From: Jordan Rose Date: Fri, 25 Jan 2013 00:20:28 +0000 (+0000) Subject: Clarify comment: "diagnose" is better than "warn" when emitting an error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae82c2b7b62d742f56638fa3cfb0f550ddcaf315;p=clang Clarify comment: "diagnose" is better than "warn" when emitting an error. Thanks, Dmitri. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173400 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index a4d6a2e8f7..74efcfb25a 100644 --- a/lib/Lex/Lexer.cpp +++ b/lib/Lex/Lexer.cpp @@ -3535,7 +3535,7 @@ LexNextToken: // Non-ASCII characters tend to creep into source code unintentionally. // Instead of letting the parser complain about the unknown token, - // just warn that we don't have valid UTF-8, then drop the character. + // just diagnose the invalid UTF-8, then drop the character. if (!isLexingRawMode()) Diag(CurPtr, diag::err_invalid_utf8);