From 8b4af2ae88264c0ca8436d1cc18687352c26adf1 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Fri, 25 Jan 2013 00:20:28 +0000 Subject: [PATCH] Clarify comment: "diagnose" is better than "warn" when emitting an error. Thanks, Dmitri. llvm-svn: 173400 --- clang/lib/Lex/Lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index a4d6a2e..74efcfb 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/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); -- 2.7.4