Clarify comment: "diagnose" is better than "warn" when emitting an error.

Thanks, Dmitri.

llvm-svn: 173400
This commit is contained in:
Jordan Rose 2013-01-25 00:20:28 +00:00
parent b52a8564ce
commit 8b4af2ae88
1 changed files with 1 additions and 1 deletions

View 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);