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 a4d6a2e..74efcfb 100644
--- a/lib/Lex/Lexer.cpp
+++ b/lib/Lex/Lexer.cpp
@@ -3535,7 +3535,7 @@
// 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);