diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-01-25 00:20:28 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-01-25 00:20:28 +0000 |
commit | ae82c2b7b62d742f56638fa3cfb0f550ddcaf315 (patch) | |
tree | 6446fb035bbb776809a8f1653f6019325e6d0854 /lib/Lex/Lexer.cpp | |
parent | d4497dde6fc8f5ce79e0ec37682b8dc920bbbef0 (diff) |
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
Diffstat (limited to 'lib/Lex/Lexer.cpp')
-rw-r--r-- | lib/Lex/Lexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |