summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-01-25 00:20:28 +0000
committerJordan Rose <jordan_rose@apple.com>2013-01-25 00:20:28 +0000
commit8b4af2ae88264c0ca8436d1cc18687352c26adf1 (patch)
tree26ef73e48f6eb3d7099897cdfc5fa2a1771a1560 /clang/lib/Lex
parentb52a8564ce99c0244fcf2db315c5555a46883ff2 (diff)
downloadbcm5719-llvm-8b4af2ae88264c0ca8436d1cc18687352c26adf1.tar.gz
bcm5719-llvm-8b4af2ae88264c0ca8436d1cc18687352c26adf1.zip
Clarify comment: "diagnose" is better than "warn" when emitting an error.
Thanks, Dmitri. llvm-svn: 173400
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/Lexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index a4d6a2e8f75..74efcfb25a8 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);
OpenPOWER on IntegriCloud