]> granicus.if.org Git - clang/commitdiff
Clarify comment: "diagnose" is better than "warn" when emitting an error.
authorJordan Rose <jordan_rose@apple.com>
Fri, 25 Jan 2013 00:20:28 +0000 (00:20 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 25 Jan 2013 00:20:28 +0000 (00:20 +0000)
Thanks, Dmitri.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173400 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Lexer.cpp

index a4d6a2e8f7592d8a09999792bdeeb97f81e194c2..74efcfb25a8fad7c3e87b92b00886a1bac7fc177 100644 (file)
@@ -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);